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.
The fix will be to detect files that do this (octet 21 = 10), and extract this value correctly.