Thanks to Wesley & Jeff for their suggestions on resolving my problem.<div><br></div><div>It turned out though that the fix was to 'make' the file from source on my server. For some reason that resolved the issues. </div>
<div><br></div><div>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. </div><div>After 'making' the wgrib2 file, I simply copied it over to the /usr/bin directory and all is well.</div>
<div><br></div><div>Thanks so much for everyone's guidance. Sometimes even talking problems through can help to consider another possibility.</div><div><br></div><div>Andy</div><div><br clear="all">Andrew Revering<br>
Convective Development, Inc.<br><a href="http://www.convectivedevelopment.com/">http://www.convectivedevelopment.com/</a><br>
<br><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 8:58 AM, Wesley Ebisuzaki <span dir="ltr"><<a href="mailto:wesley.ebisuzaki@noaa.gov">wesley.ebisuzaki@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Andy,<br><br> I am unable to duplicate your problem.<br><br> I've tried all combinations of<br><br> g2ctl 0.0.8.4 andf 0.0.8.5<br> wgrib2 1.9.1 and 1.9.5.1<br><br>My guess is that your g2ctl is not calling wgrib2 v1.9.1 but an older version.<br>
Perhaps v 1.8.5 which was incompatible with g2ctl. <br><br>It is easy to be confused about the version. People often alias wgrib2 to a new executable,<br>so the shell uses a newer version. However, g2ctl is a perl script which uses the wgrib2<br>
on the path. Try editing g2ctl <br><br> $wgrib2='wgrib2';<br>to<br> $wgrib2='/enter_full_path_here/wgrib2';<br><br> Wesley<br><br><br><br><br><br><br> Wesley<br><br><br><br><div class="gmail_quote">
On Thu, Jan 19, 2012 at 4:28 PM, Andrew Revering <span dir="ltr"><<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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<div>An example grib2 file I'm having trouble with can be downloaded here:</div><div><a href="http://www.f5maps.com/ruc.grib" target="_blank">http://www.f5maps.com/ruc.grib</a></div>
<div><br></div><div>... which is a renamed copy of the NCEP server file for the RUC model found at:</div><div><a href="ftp://ftp.ncep.noaa.gov/pub/data/nccf/com/ruc/prod" target="_blank">ftp://ftp.ncep.noaa.gov/pub/data/nccf/com/ruc/prod</a></div>
<div><br></div><div>naming convention: <a style="font-family:'Times New Roman'">ruc2.tccz.pgrb20xxx.grib2</a></div><div><span style="font-family:'Times New Roman'">AWIPS - Regional - CONUS (Lambert Conformal)(20-km Resolution)</span> </div>
<div><font face="'Times New Roman'"><br></font><div><br clear="all">Andrew Revering<br>Convective Development, Inc.<br><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
<br><br><div class="gmail_quote">On Thu, Jan 19, 2012 at 8:58 AM, Wesley Ebisuzaki <span dir="ltr"><<a href="mailto:wesley.ebisuzaki@noaa.gov" target="_blank">wesley.ebisuzaki@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Andy,<br><br> I just had a look at the RUC files on the NCEP machine and I didn't see any<br>problems. (OTOH, I didn't test all the files and you never mentioned which file<br>was causing the problem.)<br><br>
Given that you have no problems with windows, makes me suspect that you<br>
have an old wgrib2 or an ancient g2ctl.<br><br>>> <b>Warning: g2lib/g2clib jpeg deocde may differ from WMO standard, use use -g2clib 0 for WMO standardg2</b><br><br>You can ignore this error message as you are using an NCEP file. The "g2" typo indicates<br>
an older wgrib2.<br><br><b>>> Use of uninitialized value $east in addition (+) at g2ctl line 619.</b><br><br>This error indicates the g2ctl is incompatible with the installed wgrib2.<br><br> Wesley<br><br><br>
<br><div class="gmail_quote">On Wed, Jan 18, 2012 at 8:12 PM, Andrew Revering <span dir="ltr"><<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I'm having a problem with gribmap, g2ctl or potentially wgrib2 when trying to create my CTL and IDX files.<div><br></div><div>I'm just installing this on a new Linux machine (CentOs6 64 bit) and I create the CTL file with the command:</div>
<div><br></div><div>g2ctl ruc.grib > ruc.ctl</div><div><br></div><div>I get the error:</div><div><br></div><div><div><b>Warning: g2lib/g2clib jpeg deocde may differ from WMO standard, use use -g2clib 0 for WMO standardg2</b></div>
<div><b>Use of uninitialized value $east in addition (+) at g2ctl line 619.</b></div><div><b>Use of uninitialized value $west in addition (+) at g2ctl line 619.</b></div><div><b>Use of uninitialized value $east in addition (+) at g2ctl line 620.</b></div>
<div><b>Use of uninitialized value $west in addition (+) at g2ctl line 620.</b></div><div><b>Use of uninitialized value $west in subtraction (-) at g2ctl line 635.</b></div><div><b>Use of uninitialized value $east in subtraction (-) at g2ctl line 635.</b></div>
<div><b>Use of uninitialized value $west in numeric eq (==) at g2ctl line 636.</b></div><div><b>Use of uninitialized value $west in concatenation (.) or string at g2ctl line 639.</b></div><div><b>Use of uninitialized value $south in subtraction (-) at g2ctl line 640.</b></div>
<div><b>Use of uninitialized value $north in subtraction (-) at g2ctl line 640.</b></div><div><b>Use of uninitialized value $south in concatenation (.) or string at g2ctl line 641.</b></div></div><div><br></div><div>The CTL file did get created and looks alright... but then when I run Gribmap ...</div>
<div><br></div><div><div><b>Open Error: Missing or invalid dimension increment value</b></div><div><b> --> The invalid description file record is:</b></div><div><b> --> xdef 1 linear 0.192425685762171</b></div>
<div>
<b> The data file was not opened.</b></div></div><div><br></div><div>So I'm not sure if its a problem with Gribmap, g2ctl or Wgrib2....nor am I sure how to resolve it.</div><div>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.</div>
<div><br></div><div>Thoughts?</div><div><br clear="all">Andy
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>