[gdal-dev] How to find the geoextents in a netCDF file

Etienne Tourigny etourigny.dev at gmail.com
Tue Mar 18 09:39:30 PDT 2014


As Even suggests you should read the tutorial first, most questions will be
answered there.

As for Band extraction, you need to look at the metadata, which you can
inspect with gdalinfo

you should look for metadata like
NETCDF_DIM_time_DEF
NETCDF_DIM_time_VALUES

and band metadata like
NETCDF_DIM_time=1

If you want more fine-grained control on band selection based on a
particular dimension (in this case time), then perhaps you should look into
software that specializes in netcdf format like nco or cdo.




On Tue, Mar 18, 2014 at 7:07 AM, sandeep <sandeepkumar7489 at gmail.com> wrote:

> hi,
>
> i had run gdalinfo on .nc file. it doesnt have subdatsets. it is rainfall
> data. it has 122 bands. how can i get geoextents of this file. and how do i
> extract each band from it if i want display band according to the time? how
> can i access those variables? i am writing this in C so i want to know how
> to access the variables in this file?
>
>
>
> thanks
> sandeep
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/How-to-find-the-geoextents-in-a-netCDF-file-tp5129619.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140318/eeff386e/attachment.html>


More information about the gdal-dev mailing list