<div dir="ltr">Jeff,<div>I just did copy and paste. I will try the way you said. I hope the error will not occur.</div><div>Thank you.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p><b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial">Bimal Gyawali</span></i></b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial"><br>
Graduate Research Assistant<br>
Department of Physical and Environment Science<br>
Natural Resources Center<br>
Texas A&amp;M University-Corpus Christi<br>
Corpus Christi, TX 78412<br>
Tel: 435-881-3603</span></i><i><span style="font-family:&quot;Times New Roman&quot;,serif"></span></i></p></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jul 19, 2016 at 10:08 AM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Bimal,<br>There must be a bug in the current version of that code, or you copied it incorrectly. If you used copy+paste to obtain the code, I would instead try simply using wget or right clicking and selecting &quot;save link as&quot; to make sure you copied the code correctly. If you did that, then the code has a bug. I am not knowledgeable with PERL and so I may not be able to figure out the bug in such a script, but the person who writes/manages that utility, Wesley Ebisuzaki, visits this forum regularly, and his contact information can be found online. I might suggest contacting him for further assistance.<br><br></div>Good luck.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Jeff<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 19, 2016 at 9:09 AM, Bimal Gyawali <span dir="ltr">&lt;<a href="mailto:bml.gya@gmail.com" target="_blank">bml.gya@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Jeff,<div>Thank you for your email. I tried to create control file using the following command:</div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px"><a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> grib_file &gt;grib_file.ctl</span></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px">but it gives the following error:</span></div><div>







<p><span>Unexpected else.  Incorrect if block nesting.</span></p>
<p><span>  Error occurred scanning line 258.</span></p><p><span>I dont know why the error is occurred. would you please help me to figure it out? </span></p><p><span>Thank you. </span></p></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div> </div></blockquote></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p><b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial">Bimal Gyawali</span></i></b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial"><br>
Graduate Research Assistant<br>
Department of Physical and Environment Science<br>
Natural Resources Center<br>
Texas A&amp;M University-Corpus Christi<br>
Corpus Christi, TX 78412<br>
Tel: <a href="tel:435-881-3603" value="+14358813603" target="_blank">435-881-3603</a></span></i><i><span style="font-family:&quot;Times New Roman&quot;,serif"></span></i></p></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jul 18, 2016 at 3:46 PM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Use the <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> script available at this link: <a href="ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib.scripts/grib2ctl.pl" target="_blank">ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib.scripts/grib2ctl.pl</a>. You must have the wgrib utility installed to use it.<br><br></div>There is a similar script for GRIB2 data called g2ctl as well. It requires wgrib2 to be installed.<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Jul 18, 2016 at 3:38 PM, Bimal Gyawali <span dir="ltr">&lt;<a href="mailto:bml.gya@gmail.com" target="_blank">bml.gya@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello All,<div>How can I create control file for grib file using grads? Please let me know.</div><div>Thank you.<span><font color="#888888"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><p><b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial">Bimal Gyawali</span></i></b><i><span style="font-size:10pt;font-family:&#39;Times New Roman&#39;,serif;color:rgb(46,117,182);background-image:initial;background-position:initial;background-repeat:initial"><br>
Graduate Research Assistant<br>
Department of Physical and Environment Science<br>
Natural Resources Center<br>
Texas A&amp;M University-Corpus Christi<br>
Corpus Christi, TX 78412<br>
Tel: <a href="tel:435-881-3603" value="+14358813603" target="_blank">435-881-3603</a></span></i><i><span style="font-family:&quot;Times New Roman&quot;,serif"></span></i></p></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><span><font color="#888888"><br>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research associate<br>University of Oklahoma School of Meteorology<br></div></div></div>
</font></span></font></span></div><span><font color="#888888">
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></font></span></blockquote></div><br></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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div>Jeff Duda<br>Post-doctoral research associate<br>University of Oklahoma School of Meteorology<br></div></div></div>
</div>
</div></div><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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>