Hi,<br><br> Grib2 files requires (1) g2ctl (<a href="http://grib2ctl.pl">grib2ctl.pl</a> is for grib version 1), (2) wgrib2 and (3) perl.<br><br> <a href="http://www.cpc.ncep.noaa.gov/products/wesley/g2ctl.html">http://www.cpc.ncep.noaa.gov/products/wesley/g2ctl.html</a><br>
<a href="http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/">http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/</a><br><br>Perl is standard on linux and unix machines. For windows, you have many choices.<br>
I only test g2ctl using the perl that comes with cygwin; however, other versions of<br>perl are compatible.<br><br>If you are trying to read the CFSv2 or CFSRR monthly forecasts, you have to<br>fix the metadata in the grib2 headers in order to display them in GrADS. See<br>
<br><a href="http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/fix_CFSv2_fcst.html">http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/fix_CFSv2_fcst.html</a><br><br> Yours,<br> Wesley Ebisuzaki<br><br><br><div class="gmail_quote">
On Sat, Mar 10, 2012 at 11:55 PM, Marsh, Kieren <span dir="ltr"><<a href="mailto:k.marsh@geos-uae.com">k.marsh@geos-uae.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">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)">Have you downloaded Perl onto your PC? It does not come as
standard on Windows machines. ActivePerl is a good package (</span><a href="http://www.activestate.com/activeperl/downloads" target="_blank">http://www.activestate.com/activeperl/downloads</a><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)">).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)">Running the .pl script does not depend on GrADS. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)">You need to use Perl.exe to run <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> (a Perl script)
which will create a ctl file. You then need to use gribmap.exe (which should
come with your GrADS installation package) to create a map from the ctl to the
grib2 files. The file produced by gribmap will have an .idx extension.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)">Once you have the ctl and idx files you can then open the ctl
file in GrADS to read the data in the grib2 files.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)">Have a look at this as well:<u></u><u></u></span></p>
<p class="MsoNormal"><a href="http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html" target="_blank">http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html</a><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Tahoma","sans-serif";color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) -moz-use-text-color -moz-use-text-color;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>
[mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] <b>On Behalf Of </b>kalyan chakravarthy<br>
<b>Sent:</b> 09 March 2012 14:05<br>
<b>To:</b> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<b>Subject:</b> [gradsusr] problem in Generating CTL file to Read GRB2 file in
Grads<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear All<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Am new to work with GRB2 files in grads.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Have extracted a CFSR file for vwnd component and the
format of the file is in .grb2<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">To read this file have downloaded <a href="http://grib2ctl.pl" target="_blank">grib2ctl.pl</a> file from the website and when tried
to open to <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">in grads using command <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">><a href="http://GRIB2CTL.PL" target="_blank">GRIB2CTL.PL</a> -VERF
FILENAME.GRB2>FILENAME.CTL<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> after giving this command this is showing an error in
the script file<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Am using Grads 2.0.a7.oga.3 in windows operating system<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Can anyboby help me in sorting out this problem<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks in advance<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">kalyan<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<br>
<br>
<span style="font-family:"Comic Sans MS";color:black"><br>
</span><span style="font-family:"Arial","sans-serif""><br>
</span><br>
<br>
<u></u><u></u></p>
</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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br>