Skip Menu |

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

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

People
Owner: frank.l.cox [...] gmail.com
Requestors: frank.l.cox [...] gmail.com
Cc: ptomblin [...] gmail.com
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



RT-Send-CC: ptomblin [...] gmail.com
GRIB files from http://www.weatheroffice.gc.ca/grib/High-resolution_GRIB_e.html have La1 = -90 or the south pole. Geo::ReadGRIB expects lats to run north to south and will not work correctly with these gribs without an *ugly hack*.
RT-Send-CC: ptomblin [...] gmail.com
NOAA Wavewatch III grib files have lats organized north to south and Geo::ReadGRIB was developed to work with these files. My investigation has showed that south to north is allowed and maybe even more common. I think this is a real bug.
According to the GRIB spec, I need to look at GDS byte 17 bit 5 to see which way the lat/longs scan. Basicly, 0 = north/west to south/east, 1 = in numerical order, south/west to north/east.
This should be byte 28 "Scanning Mode Flag" bits 1 and 2. Byte 17 bit 5 will also be different (probably) in the two types of grib but it indicates how to resolve vector quantities. On Tue Oct 13 20:06:57 2009, FRANKCOX wrote: Show quoted text
> According to the GRIB spec, I need to look at GDS byte 17 bit 5 to see > which way the lat/longs scan. Basicly, 0 = north/west to south/east, 1 = > in numerical order, south/west to north/east. >
This issue has been addressed in test version Geo-ReadGRIB-0.98_2.tar.gz which has been uploaded to CPAN. It should show up in http://cpan.perl.org/authors/id/F/FR/FRANKCOX/ soon. This ticket will remain open pending testing.
Geo::ReadGRIB now detects the scan order of GRIB files. As of v0.98_1 it will support west/east and south/north scanning like this in addition to the west/east and north/south scanning in Wavewatch files. It will now give a message for any other not-yet-supported scanning orders asking the user to contact the module maintainer for support. I'm not expecting this but I can add support if I am made aware of such interesting GRIB files I can use for testing.