Opened 10 years ago

Closed 10 years ago

#4932 closed defect (fixed)

Wrong subdataset data type info on a netCDF file

Reported by: jluis Owned by: etourigny
Priority: normal Milestone:
Component: default Version: svn-trunk
Severity: normal Keywords:


Running gdalinfo on this "ascat" netCDF file prints that the subdatasets are of 8-bits type.

gdalinfo ...

SUBDATASET_5_NAME=NETCDF:"":model_speed SUBDATASET_5_DESC=[3259x82] model_speed (8-bit integer) SUBDATASET_6_NAME=NETCDF:"ascat_20120507_222701_metopa_

This is wrong since those arrays have a 16-bits type as can be seen by printing the info of the subdataset

gdalinfo NETCDF:"":wind_speed ... Band 1 Block=82x1 Type=Int16, ColorInterp=Undefined

NoData Value=-32767 Offset: 0, Scale:0.01


Change History (1)

comment:1 by etourigny, 10 years ago

Resolution: fixed
Status: newclosed

fixed in trunk (r25333) and 1.9 (r25334).

I also fixed NC_INT (was 16-bit, should be 32-bit) and added the various netcdf-4 unsigned data types that were missing.

Note: See TracTickets for help on using tickets.