<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
Well I don't ever remember corresponding with anyone on the grads boards about this, but I think I know the problem. I don't think you can run the script to produce your .ctl file from within the grads environment, you need to do so outside of this on the operating
 system where you have installed grads. I'm going to guess from the below that you have some linux operating system. You need to look at the documentation on how to run this g2ctl script, which you seem to know of given the command you tried in grads, and instead
 do so from the linux environment with perl in your path. If perl was installed in the standard place /usr/bin (as is assumed in the perl script) it should be in the path from where you would type the command. If it is not then you will need to specify the
 path to perl before running the perl script with the appropriate command on that same line as specified by the documentation (and also change this line in the perl script, i.e. #!/usr/bin/perl -w, the the correct path). At this point, you would need to run
 gribmap outside of grads as well to get the .idx file. There should be documentation on this as well. It is my experience these need be paired in the same directory when opening the .ctl, which is where you would then want to use grads (i.e. you can open the
 .ctl in grads with the open command). <br>
<br>
Also, please send out these emails to <span class="nowrap"></span><span id="spnR" _e_oncontextmenu="onRwCm(event);" _e_ondblclick="onDblClkReadRcp(event);" _e_onclick="onClkRcp(event);" class="rwRRO" _ao="3" _rf="0" _rt="SMTP" _em="gradsusr@gradsusr.org" title="gradsusr@gradsusr.org" _sa="gradsusr@gradsusr.org" _dn="gradsusr@gradsusr.org">gradsusr@gradsusr.org</span>
 instead of individuals. You will get more potential responders and I could have any of my mistakes checked by those individuals as well. Good luck.<br>
<br>
PS- Others, have I made a mistake? I never once tried to run g2ctl or the other grib version from within grads.<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF134591"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Ato Akorful [aakorful@gmail.com]<br>
<b>Sent:</b> Tuesday, April 10, 2012 3:59 AM<br>
<b>To:</b> Rowell, Mason D.<br>
<b>Subject:</b> .ctl file of gribs2 file<br>
</font><br>
</div>
<div></div>
<div>
<div class="gmail_quote">Hi Rowell,
<div><br>
</div>
<div>I am a new user of GrADS with very little programming experience. I use the grads-2.0.1.oga.1.&nbsp;I have downloaded the g2ctl script (from
<a href="ftp://ftp.cpc.ncep.noaa.gov/wd51we/g2ctl/g2ctl" target="_blank">ftp://ftp.cpc.ncep.noaa.gov/wd51we/g2ctl/g2ctl</a> and pasted it in the scripts folder: C:\OpenGrADS\Contents\Resources\Scripts, installed Perl 5 (ie strawberry) and wgribs2 as you directed
 on this page:&nbsp;<a href="http://www.cpc.ncep.noaa.gov/products/wesley/g2ctl.html" target="_blank">http://www.cpc.ncep.noaa.gov/products/wesley/g2ctl.html</a>.&nbsp;</div>
<div><br>
</div>
<div>However, when I try to run the script in the GrADS console, I get this error: &quot;Unexpected else. Incorrect if block nesting. Error occurred at line 275.&quot; Please check the details in the image:</div>
<div><br>
</div>
<div><img src="cid:ii_1369b71ee04e7c0f" alt="Inline image 2"><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Could you please help me around this?&nbsp;</div>
<div><br>
</div>
<div>Best Regards</div>
<div><br>
</div>
<div>S. A. Andam-Akorful</div>
<div>PhD. Student</div>
<div>Hohai University, China.</div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>