Ticket #3606 (new defect)

Opened 3 years ago

Last modified 3 years ago

gdalinfo -stats reports units as Kelvin but displays min/max/avg values in °C

Reported by: shadock Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.7.0
Severity: normal Keywords: grib
Cc:

Description

when calling gdalinfo on a GRIB file with temperatures, gdalinfo -stats reports units as Kelvin but displays min/max/avg values in °C.

It should either report temperatures values in Kelvin either report Temperature unit as °C.

When converting with gdal_translate to an AAIGrid format file, values are in °C. In the original file, values are clearly Kelvin.

Change History

Changed 3 years ago by warmerdam

  • keywords grib added

Can you supply and some evidence to indicate that the original data is in Kelvin?

I assume this is an issue with the degrib library doing units transformation, but it might also be a specific metadata issue with a file or something. I can't event think of investigating till I have more detail.

Changed 3 years ago by warmerdam

I'm still waiting on detail to pursue this further...

Note: See TracTickets for help on using tickets.