Hi, Note that I have implemented in GDAL support of NetCDF-4 files including groups and support of warping new NASA OceanColor L2 format using geolocation array but unfortunately still not finalized the patch to GDAL... More details here: http://osgeo-org.1560.x6.nabble.com/gdal-dev-NetCDF-driver-improvements-including-groups-support-td5185773.html This also works for VIIRS L2 products. I can provide the patch to you if you are interested, let me know.
Regards, Julien -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Anton Korosov Envoyé : mardi 30 juin 2015 09:41 À : [email protected] Objet : Re: [gdal-dev] Getting warning when opening NetCDF file using gdal? Hi! The format of the new OBPG OceanColor files is HDF5 (aka NetCDF4), so you should have your GDAL compiled with HDF5 support: http://www.gdal.org/frmt_hdf5.html Then you can access the content of the file using groups and variables syntax: gdalinfo HDF5:"A2015069035500.L2_LAC_OC.nc"://geophysical_data/chlor_a Regards! Anton On 30/06/15 04:48, oz wrote: > I am using windows 7(32-bit) and want to warp NetCDF (nc) files and > save the output as GeoTIFF. > > First I run gdalinfo first to get the info of the subdataset I need > and added NeTCDF in the beginning(e.g. gdalinfo > NETCDF:"A2015069035500.L2_LAC_OC.nc") but was unfortunate because a > warning > appeared: > > Warning 1: Variable has 0 dimension(s) - not supported. > gdalinfo failed - unable to open 'netCDF:A2015069035500.L2_LAC_OC.nc'. > > Command line input: > > gdalinfo A2015069035500.L2_LAC_OC.nc > > > NetCDF is present when I tried `gdalinfo --formats`. > > Does anyone have any idea about this? > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Getting-warning-when-opening-NetCD > F-file-using-gdal-tp5213484.html Sent from the GDAL - Dev mailing list > archive at Nabble.com. > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
