[gdal-dev] vsicurl access to a netcdf file does not see the coordinates

Joaquim Manuel Freire Luís jluis at ualg.pt
Sun Jun 2 09:26:13 PDT 2019

Thanks Andrew,

So, I can now force the reading with the HDF5 driver on local file and it also doesn't read the coordinates.
Is this a bug in HDF5 driver?

gdalinfo --config GDAL_SKIP netCDF idades_v2012.grd
Driver: HDF5Image/HDF5 Dataset
Files: none associated
Size is 2029, 1168
  description=File written from Matlab
  title=Grid computed inside Mirone
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0, 1168.0)
Upper Right ( 2029.0,    0.0)
Lower Right ( 2029.0, 1168.0)
Center      ( 1014.5,  584.0)
Band 1 Block=1015x584 Type=Float32, ColorInterp=Undefined
  NoData Value=nan
    z_actual_range=-0.0558451935648918 181.299896240234

|>-----Original Message-----
|>From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Andrew C
|>Sent: Sunday, June 2, 2019 2:35 PM
|>To: Jeff McKenna <jmckenna at gatewaygeomatics.com>
|>Cc: gdal-dev at lists.osgeo.org
|>Subject: Re: [gdal-dev] vsicurl access to a netcdf file does not see the
|>On Sun, 2 Jun 2019, Jeff McKenna wrote:
|>> On 2019-06-01 6:52 PM, Joaquim Manuel Freire Lu?s wrote:
|>>> Is there a way to force reading the grid locally with the HDF5 driver
|>>> instead of the automatically picked netCDF driver?
|>>> _______________________________________________
|>> I come across this need often also, as many MS4W users leverage GDAL
|>> through netCDF, HDF5, HDF4, but I'm not aware of a GDAL commandline
|>option to 'skip'
|>> raster drivers (OGR has "OGR_SKIP").  I could be wrong though.  I have
|>> seen other users request this
|>> (https://trac.osgeo.org/gdal/ticket/5917) which seems to say that
|>> there is a way through the GDAL API, but, I'm just not sure about the
|>Rather like OGR_SKIP, the GDAL_SKIP environment variable skips raster drivers
|>(tested with gdal 1.11 and 3.0.)
|>Andrew C. Aitchison					Cambridge, UK
|> 			andrew at aitchison.me.uk
|>gdal-dev mailing list
|>gdal-dev at lists.osgeo.org

More information about the gdal-dev mailing list