[Gdal-dev] NetCDF changes between 1.4 and 1.3.2

Norman Barker nbarker at ittvis.com
Thu Mar 1 09:17:11 EST 2007


Hi,

I am using gdal 1.3.2 on one machine, and upgraded to 1.4.0 on a
different machine (linux).  

However, running gdalinfo on the same netCDF files reports different
results, in that 1.3.2 is picking up the geo-info and 1.4.0 is not!! 
 
However I don't think this is a gdal version issue as I notice the same
thing with FWTools 1.1.0 on windows which is 1.3.2 of gdal - so it must
be a link with the netCDF library.

I have run ncdump on both netCDF files to confirm that the netCDF
library is reading the right lat/lons (it is).  Any thoughts
appreciated.  

I am going to parse the output of ncdump as work around in my script,
but I imagine this affects a few others.

(output below) 

Thanks,

Norman

1.3.2
Driver: netCDF/Network Common Data Format
Size is 320, 160
Coordinate System is `'
Origin = (0.000000,89.141518)
Pixel Size = (1.12148438,-1.11426897)
Metadata:
  NC_GLOBAL#history=Fri Sep  8 12:49:26 2006: ncks -v T
ggap1982012318.nc /tmp/t_ERA40_1982012318.nc
XCONV V1.05 10-October-2001
  ta#source=GRIB data
  ta#name=T
  ta#title=Temperature
  ta#date=23/01/82
  ta#time=18:00
  ta#long_name=Temperature
  ta#units=K
  ta#missing_value=2.000000e+20
  ta#_FillValue=2.000000e+20
  ta#valid_min=1.868241e+02
  ta#valid_max=3.150072e+02
  Time#units=days_since_19820123.18
  Time#time_origin=23-JAN-1982:18:00:00
  Pressure#units=hPa
  Pressure#positive=down
  Latitude#units=degrees_north
  Longitude#units=degrees_east
  Longitude#point_spacing=even
  Longitude#modulo=
Corner Coordinates:
Upper Left  (   0.0000000,  89.1415176)
Lower Left  (   0.0000000, -89.1415176)
Upper Right (     358.875,      89.142)
Lower Right (     358.875,     -89.142)
Center      ( 179.4375000,   0.0000000)

1.4.0
Driver: netCDF/Network Common Data Format
Size is 320, 160
Coordinate System is `'
Metadata:
  NC_GLOBAL#history=Fri Sep  8 12:49:26 2006: ncks -v T
ggap1982012318.nc /tmp/t_ERA40_1982012318.nc
XCONV V1.05 10-October-2001
  ta#source=GRIB data
  ta#name=T
  ta#title=Temperature
  ta#date=23/01/82
  ta#time=18:00
  ta#long_name=Temperature
  ta#units=K
  ta#missing_value=2.000000e+20
  ta#_FillValue=2.000000e+20
  ta#valid_min=1.868241e+02
  ta#valid_max=3.150072e+02
  Time#units=days_since_19820123.18
  Time#time_origin=23-JAN-1982:18:00:00
  Pressure#units=hPa
  Pressure#positive=down
  Latitude#units=degrees_north
  Longitude#units=degrees_east
  Longitude#point_spacing=even
  Longitude#modulo=
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  160.0)
Upper Right (  320.0,    0.0)
Lower Right (  320.0,  160.0)
Center      (  160.0,   80.0)
Band 1 Block=320x1 Type=Float32, ColorInterp=Undefined






More information about the Gdal-dev mailing list