[gdal-dev] Units of dimension variable in NetCDF is 'km'

Anton Korosov anton.korosov at nersc.no
Tue Aug 7 02:10:34 PDT 2012


Dear Etienne,

I faced the following problem with the NetCDF driver:
Units of the dimension variables are 'km' and values in the SRS are in 
meters, of course (e.g. Earth radius). Hence the calculated GeoTransform 
is 1000 times less than should be and the calculate latlons are incorrect.
However 'units' attribute is given, besides AFAIK CF-conventions allow 
to have 'k' (kilo) preceding 'm' (meters) in the units.

Can you please give me a hint where to fix that in the driver so that it 
can adequately interpret units of the dimensions?

With best regards!
Anton



More information about the gdal-dev mailing list