[gdal-dev] netcd from WRF

Even Rouault even.rouault at spatialys.com
Tue Oct 17 08:13:23 PDT 2017


> > Are you sure that GDAL handles the bands as GDAL raster bands of the same
> > GDAL dataset, and not as different subdatasets (I suspect this is the
> > later) ? Because the georeferencing info in a GDAL dataset is attached to
> > the dataset, not the bands. So if that works for the first band, that
> > should work for the next ones of the same dataset.
> 
> Is there a simple way to check that from gdalinfo output ?

The gdalinfo output you provided shows that it is indeed a multi-band dataset 
(which is a subdataset). So georeferencing should apply to all bands since 
this is attached to the dataset, and not the bands. I'm not clear why QGIS 
would get it for band 1 and not for other bands.

> I suppose that what you mean by subdataset is what you obtain with
> syntax like "netcdf:'myfile.nc':MYVAR". 

Yes

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list