[gdal-dev] vsicurl access to a netcdf file does not see the coordinates
Joaquim Manuel Freire Luís
jluis at ualg.pt
Fri May 31 16:49:09 PDT 2019
Hi,
GDAL master here
When I run gdalinfo on a remote nc file, instead of reporting the coordinates it prints the array size
gdalinfo /vsicurl/http://w3.ualg.pt/~jluis/ftp/tmp/idades_v2012.grd
Driver: HDF5Image/HDF5 Dataset
Files: none associated
Size is 2029, 1168
Metadata:
Conventions=COARDS
description=File written from Matlab
node_offset=0
Source_Software=Mirone
title=Grid computed inside Mirone
_nc3_strict=1
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
Metadata:
z_actual_range=-0.0558451935648918 181.299896240234
z_long_name=z
z_units=unknown
z__FillValue=-nan(ind)
However, if I download the file and run it locally, then the result is correct
gdalinfo idades_v2012.grd
Driver: netCDF/Network Common Data Format
Files: idades_v2012.grd
Size is 2029, 1168
Origin = (-42.658333333333331,48.208333333333336)
Pixel Size = (0.016666666666667,-0.016666666666667)
Metadata:
latitude#actual_range={28.75,48.2}
latitude#long_name=latitude
latitude#units=degrees_north
longitude#actual_range={-42.65,-8.849999999999994}
longitude#long_name=longitude
longitude#units=degrees_east
NC_GLOBAL#Conventions=COARDS
NC_GLOBAL#description=File written from Matlab
NC_GLOBAL#node_offset=0
NC_GLOBAL#Source_Software=Mirone
NC_GLOBAL#title=Grid computed inside Mirone
z#actual_range={-0.05584519356489182,181.2998962402344}
z#long_name=z
z#units=unknown
z#_FillValue=-nan(ind)
Corner Coordinates:
Upper Left ( -42.6583333, 48.2083333)
Lower Left ( -42.6583333, 28.7416667)
Upper Right ( -8.8416667, 48.2083333)
Lower Right ( -8.8416667, 28.7416667)
Center ( -25.7500000, 38.4750000)
Band 1 Block=2029x1 Type=Float32, ColorInterp=Undefined
NoData Value=nan
Unit Type: unknown
Metadata:
actual_range={-0.05584519356489182,181.2998962402344}
long_name=z
NETCDF_VARNAME=z
units=unknown
_FillValue=-nan(ind)
Joaquim
More information about the gdal-dev
mailing list