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

2014-03-18 Thread sandeep
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

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

2014-03-18 Thread Even Rouault
It looks like you need to read http://gdal.org/gdal_tutorial.html 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?

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

2014-03-18 Thread Ivan Price
and make sure you'r using gdal 1.10.. the netcdf driver is more functional -i From: gdal-dev-boun...@lists.osgeo.org [gdal-dev-boun...@lists.osgeo.org] on behalf of Even Rouault [even.roua...@mines-paris.org] Sent: Tuesday, 18 March 2014 11:38 To:

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

2014-03-18 Thread Etienne Tourigny
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

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

2014-03-18 Thread Etienne Tourigny
the gdal api tutorial will give you pointers on how to access dataset and band-level metadata On Tue, Mar 18, 2014 at 2:38 PM, sandeep sandeepkumar7...@gmail.com wrote: yes Etienne i need to extract band according to the NETCDF_DIM_time_VALUES. so i am doing it in C. so i need to access these

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

2014-03-18 Thread sandeep
From the GetRasterCount() i can find the number of bands and using vrt i am creating a file for every band. in order to to show them according to the NETCDF_DIM_time_VALUES how can i do that? -- View this message in context:

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

2014-03-18 Thread sandeep
yes Etienne i need to extract band according to the NETCDF_DIM_time_VALUES. so i am doing it in C. so i need to access these variable.. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-find-the-geoextents-in-a-netCDF-file-tp5129619p5129724.html Sent from the GDAL

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

2014-03-18 Thread Etienne Tourigny
loop for each raster as explained in the tutorial, and get the specific metadataitem like this const char* md = GDALGetMetadataItem(hBand, NETCDF_DIM_time_VALUE, ) md will contain the value of NETCDF_DIM_time_VALUE for that band On Tue, Mar 18, 2014 at 2:42 PM, sandeep