[gradsusr] Wgrib2 / g2ctl / gribmap

Andrew Revering andy at f5data.com
Mon Jan 23 09:41:19 EST 2012


Thanks to Wesley & Jeff for their suggestions on resolving my problem.

It turned out though that the fix was to 'make' the file from source on my
server. For some reason that resolved the issues.

I had been using an RPM version and tried a precompiled binary, both of
which had problems. Using Cola's gribmap didn't help me, nor did setting
the path in g2ctl.
After 'making' the wgrib2 file, I simply copied it over to the /usr/bin
directory and all is well.

Thanks so much for everyone's guidance. Sometimes even talking problems
through can help to consider another possibility.

Andy

Andrew Revering
Convective Development, Inc.
http://www.convectivedevelopment.com/


On Fri, Jan 20, 2012 at 8:58 AM, Wesley Ebisuzaki <wesley.ebisuzaki at noaa.gov
> wrote:

> Andy,
>
>   I am unable to duplicate your problem.
>
>   I've tried all combinations of
>
>      g2ctl 0.0.8.4 andf 0.0.8.5
>      wgrib2 1.9.1 and 1.9.5.1
>
> My guess is that your g2ctl is not calling wgrib2 v1.9.1 but an older
> version.
> Perhaps  v 1.8.5 which was incompatible with g2ctl.
>
> It is easy to be confused about the version.  People often alias wgrib2 to
> a new executable,
> so the shell uses a newer version.  However, g2ctl is a perl script which
> uses the wgrib2
> on the path.   Try editing g2ctl
>
>    $wgrib2='wgrib2';
> to
>    $wgrib2='/enter_full_path_here/wgrib2';
>
>         Wesley
>
>
>
>
>
>
>          Wesley
>
>
>
> On Thu, Jan 19, 2012 at 4:28 PM, Andrew Revering <andy at f5data.com> wrote:
>
>> I'm using version 0.0.8.4 of g2ctl and 0.1.9.1 of wgrib2, and gribmap for
>> grads 2.0.1.oga.1
>> An example grib2 file I'm having trouble with can be downloaded here:
>> http://www.f5maps.com/ruc.grib
>>
>> ... which is a renamed copy of the NCEP server file for the RUC model
>> found at:
>> ftp://ftp.ncep.noaa.gov/pub/data/nccf/com/ruc/prod
>>
>> naming convention: ruc2.tccz.pgrb20xxx.grib2
>> AWIPS - Regional - CONUS  (Lambert Conformal)(20-km Resolution)
>>
>>
>> Andrew Revering
>> Convective Development, Inc.
>> http://www.convectivedevelopment.com/
>>
>>
>> On Thu, Jan 19, 2012 at 8:58 AM, Wesley Ebisuzaki <
>> wesley.ebisuzaki at noaa.gov> wrote:
>>
>>> Andy,
>>>
>>>     I just had a look at the RUC files on the NCEP machine and I didn't
>>> see any
>>> problems.  (OTOH, I didn't test all the files and you never mentioned
>>> which file
>>> was causing the problem.)
>>>
>>>     Given that you have no problems with windows, makes me suspect that
>>> you
>>> have an old wgrib2 or an ancient g2ctl.
>>>
>>> >>  *Warning: g2lib/g2clib jpeg deocde may differ from WMO standard,
>>> use use -g2clib 0 for WMO standardg2*
>>>
>>> You can ignore this error message as you are using an NCEP file.  The
>>> "g2" typo indicates
>>> an older wgrib2.
>>>
>>> *>> Use of uninitialized value $east in addition (+) at g2ctl line 619.*
>>>
>>> This error indicates the g2ctl is incompatible with the installed wgrib2.
>>>
>>>         Wesley
>>>
>>>
>>>
>>> On Wed, Jan 18, 2012 at 8:12 PM, Andrew Revering <andy at f5data.com>wrote:
>>>
>>>> I'm having a problem with gribmap, g2ctl or potentially wgrib2 when
>>>> trying to create my CTL and IDX files.
>>>>
>>>> I'm just installing this on a new Linux machine (CentOs6 64 bit) and I
>>>> create the CTL file with the command:
>>>>
>>>> g2ctl ruc.grib > ruc.ctl
>>>>
>>>> I get the error:
>>>>
>>>> *Warning: g2lib/g2clib jpeg deocde may differ from WMO standard, use
>>>> use -g2clib 0 for WMO standardg2*
>>>> *Use of uninitialized value $east in addition (+) at g2ctl line 619.*
>>>> *Use of uninitialized value $west in addition (+) at g2ctl line 619.*
>>>> *Use of uninitialized value $east in addition (+) at g2ctl line 620.*
>>>> *Use of uninitialized value $west in addition (+) at g2ctl line 620.*
>>>> *Use of uninitialized value $west in subtraction (-) at g2ctl line 635.
>>>> *
>>>> *Use of uninitialized value $east in subtraction (-) at g2ctl line 635.
>>>> *
>>>> *Use of uninitialized value $west in numeric eq (==) at g2ctl line 636.
>>>> *
>>>> *Use of uninitialized value $west in concatenation (.) or string at
>>>> g2ctl line 639.*
>>>> *Use of uninitialized value $south in subtraction (-) at g2ctl line
>>>> 640.*
>>>> *Use of uninitialized value $north in subtraction (-) at g2ctl line
>>>> 640.*
>>>> *Use of uninitialized value $south in concatenation (.) or string at
>>>> g2ctl line 641.*
>>>>
>>>> The CTL file did get created and looks alright... but then when I run
>>>> Gribmap ...
>>>>
>>>> *Open Error:  Missing or invalid dimension increment value*
>>>> *  --> The invalid description file record is:*
>>>> *  --> xdef 1 linear  0.192425685762171*
>>>>  *  The data file was not opened.*
>>>>
>>>> So I'm not sure if its a problem with Gribmap, g2ctl or Wgrib2....nor
>>>> am I sure how to resolve it.
>>>> I use the same exact file on a windows machine using the same process
>>>> to create the CTL and IDX files without a problem, so I assume it has to be
>>>> machine specific with the installation or something.
>>>>
>>>> Thoughts?
>>>>
>>>> Andy
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120123/d097eacf/attachment-0003.html 


More information about the gradsusr mailing list