Posted on 2010-01-22 09:51:01.100022-08 by pax
Error using ReadGRIB on Windows
Hi, I am a perl neophyte. I installed Geo::ReadGRIB on my pc (Windows XP) with Perl 5.10 without any problem. But when I tried to extract a GRIB file, using the code given in the Synopsys, I was able to read the catalog but got the "Can't call method "numLat" without a package or object reference at ... " error right before stepping through the data using the Iterator $plit. After looking into the ReadGRIB.pm, it looks like the ExtractLaLo routine returned a 1 instead of a reference. Did I miss something? I did try reinstalling the package a few times, and also tried a few different grib files. Another issue is that, for the grib file with negative longitude such as (0, -2) I always get out of range error. Appreciate any help you guys can give me. Thnaks, pax
Direct Responses: 12236 | Write a response
Posted on 2010-01-24 05:38:07.289579-08 by chariya in response to 12235
Re: Error using ReadGRIB on Windows
Got the problem fixed. I modified the syntax of file pathname a little bit to work on Windows. The \" and / seems to be in the wrong place. Thanks, pax
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.