[gdal-dev] Getting warning when opening NetCDF file using gdal?

Anton Korosov anton.korosov at nersc.no
Tue Jun 30 00:40:52 PDT 2015


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-NetCDF-file-using-gdal-tp5213484.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
>



More information about the gdal-dev mailing list