[gradsusr] problem in Generating CTL file to Read GRB2 file in Grads

Wesley Ebisuzaki wesley.ebisuzaki at noaa.gov
Mon Mar 12 09:50:44 EDT 2012


Hi,

  Grib2 files requires (1) g2ctl (grib2ctl.pl is for grib version 1), (2)
wgrib2 and (3) perl.

                 http://www.cpc.ncep.noaa.gov/products/wesley/g2ctl.html
                 http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/

Perl is standard on linux and unix machines.  For windows, you have many
choices.
I only test g2ctl using the perl that comes with cygwin; however, other
versions of
perl are compatible.

If you are trying to read the CFSv2 or CFSRR monthly forecasts, you have to
fix the metadata in the grib2 headers in order to display them in GrADS.
See

http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/fix_CFSv2_fcst.html

  Yours,
  Wesley Ebisuzaki


On Sat, Mar 10, 2012 at 11:55 PM, Marsh, Kieren <k.marsh at geos-uae.com>wrote:

>  Have you downloaded Perl onto your PC?  It does not come as standard on
> Windows machines. ActivePerl is a good package (
> http://www.activestate.com/activeperl/downloads).****
>
> ** **
>
> Running the .pl script does not depend on GrADS. ****
>
> ** **
>
> You need to use Perl.exe to run grib2ctl.pl (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.****
>
> ** **
>
> 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.****
>
> ** **
>
> Have a look at this as well:****
>
> http://www.cpc.ncep.noaa.gov/products/wesley/grib2ctl.html****
>
> ** **
>
> *From:* gradsusr-bounces at gradsusr.org [mailto:
> gradsusr-bounces at gradsusr.org] *On Behalf Of *kalyan chakravarthy
> *Sent:* 09 March 2012 14:05
> *To:* gradsusr at gradsusr.org
> *Subject:* [gradsusr] problem in Generating CTL file to Read GRB2 file in
> Grads****
>
> ** **
>
> Dear All****
>
>  ****
>
> Am new to work with GRB2 files in grads.****
>
>  ****
>
> Have extracted a CFSR file for vwnd component and the format of the file
> is in .grb2****
>
>  ****
>
> To read this file have downloaded grib2ctl.pl file from the website and
> when tried to open to ****
>
>  ****
>
> in grads using command ****
>
>  ****
>
> >GRIB2CTL.PL  -VERF FILENAME.GRB2>FILENAME.CTL****
>
>  ****
>
>  after giving this command this is showing an error in the script file****
>
>  ****
>
> Am using Grads 2.0.a7.oga.3 in windows operating system****
>
>  ****
>
>  ****
>
> Can anyboby help me in sorting out this problem****
>
>  ****
>
>  ****
>
>  ****
>
> Thanks in advance****
>
>  ****
>
> kalyan****
>
>  ****
>
>
>
>
>
>
>
>
>  ****
>
> _______________________________________________
> 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/20120312/5b36710d/attachment-0003.html 


More information about the gradsusr mailing list