[gradsusr] how to deal with gribscan and wgrib/wgrib2?
Andrew Revering
andy at f5data.com
Wed Mar 9 13:53:05 EST 2011
Some clarification on some of these points….
- It may not be obvious, but g2ctl is a perl file, so the link I gave you just pulls up the code. You probably are better off going to ftp://ftp.cpc.ncep.noaa.gov/wd51we/g2ctl/ and then right click and save g2ctl and save it as a .pl file.
- You don’t need to save or find gribmap, just calling it from the command line should work if you installed OpenGrads.
- When adding your directory to the system path, click on PATH when you’re in that screen, and click Edit, add a semicolon (;) to the end of all the information in that line, and then the full path to the folder all your stuff is in… IE ;c:\users\me\desktop\grib\
- When running GrADS on your grib file you might get an error. If you do, check the .ctl file in notepad and see if you see a carat (^) just before the grib filename in that file. If there is, replace that ^ with the full path to the grib file. So if you open the ctl file and see something like: ^gribfile.grib2 change it to c:\users\me\desktop\grib\gribfile.grib2
Andrew Revering
Convective Development, Inc.
http://www.convectivedevelopment.com/
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Andrew Revering
Sent: Wednesday, March 09, 2011 12:35 PM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] how to deal with gribscan and wgrib/wgrib2?
The method I use to create the CTL and IDX files from Grib2 data is:
The setup:
- Install Strawberry Perl from www.strawberryperl.com so you can run perl scripts under windows.
- Get g2ctl.pl ftp://ftp.cpc.ncep.noaa.gov/wd51we/g2ctl/g2ctl
- Copy the .DLLs and wgrib.exe from this directory:
ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/Windows_XP
- Use gribmap, which is packaged with OpenGrads.
- Make sure after you put all those files in one directory that you do a search on your computer for cygwin1.dll and make sure there is only 1 copy on your machine. Delete any on your machine that are NOT the one you just downloaded. Having more than one copy on the machine will screw things up.
- Then put the directory you just created and put all these files into into your windows PATH (right click My Computer, go to Properties, go to Advanced, Environment Variables and in the 2nd big box look for PATH)
Then you run the following commands from the command line, or put them in a .bat file to execute.
perl g2ctl.pl gribfile.grib2 > gribfile.ctl
gribmap -i gribfile.ctl
gribfile is whatever the filename is… and you probably want to use absolute paths to the files in all cases… so an example might be:
perl c:\users\me\desktop\grib\g2ctl.pl c:\users\me\desktop\grib\gribfile.grib2 > c:\users\me\desktop\grib\gribfile.ctl
gribmap -i c:\users\me\desktop\grib\gribfile.ctl
Andrew Revering
Convective Development, Inc.
http://www.convectivedevelopment.com/
From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of muhammad hasan ali baig
Sent: Wednesday, March 09, 2011 12:15 PM
To: gradsusr at gradsusr.org
Subject: [gradsusr] how to deal with gribscan and wgrib/wgrib2?
Dear all,
I am using the latest version of GrADS in windows 'grads-2.0.a9.oga.1-win32_superpack'. I tried to use gribscan and wgrib/wgrib2 to convert my data into GRIB2 format but message occurred 'unknown command'. How can i deal with this problem?
==================================================================
Muhammad Hasan Ali Baig,
Key Laboratory of Meteorological Disaster of Ministry of Education,Nanjing
University of Information Science & Technology, Nanjing 210044, P. R. China
Mobile: +8615251705047
==================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110309/5889f67c/attachment-0003.html
More information about the gradsusr
mailing list