Skip Menu |

This queue is for tickets about the Geo-ReadGRIB CPAN distribution.

Report information
The Basics
Id: 53494
Status: resolved
Priority: 0/
Queue: Geo-ReadGRIB

People
Owner: frank.l.cox [...] gmail.com
Requestors: frank.l.cox [...] gmail.com
Cc: laurie [...] ljd-tech.com
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.98_1
  • 0.98_2
  • 0.98_3
  • 0.98_5
  • 1
  • 1.0_1
  • 1.0_2
  • 1.0_3
  • 1.0_4
  • 1.0_5
  • 1.0_6
  • 1.0_7
  • 1.1
  • 1.2
  • 1.21
Fixed in:
  • 1.22
  • 1.3



CC: laurie [...] ljd-tech.com
Subject: Geo::ReadGRIB bug fix
Some versions of Canadian Meteorological Center's GEM model GRIB files use a combination of the bits in PDS header octet 19 and 20 to indicate the time period offset from the base time for forecast data. Geo::ReadGRIB looks for this value in octet 19. This will cause time issues for CMC forecast gribs and makes it impossible to correctly work with GRIB files built up by concatenating multiple records of this type.

The fix will be to detect files that do this (octet 21 = 10), and extract this value correctly.
RT-Send-CC: laurie [...] ljd-tech.com
This bug is fixed in Geo::ReadGRIB 1.22 and above. The current version is no 1.3

The fix required checking PDS "time range" flag of a record before evaluating the time offset value. Double byte values will now be used if present, as they are in the problem CMS gribs where this bug was discovered.