GRADS grib1

step 1:

First of we need to install GRADS

From the above link we can get the source.

In Ubuntu $ sudo apt-get install grads

step 2:

From the below site we can download the perl source code

Look in the bottom of the page.

Try to open all the above links in firefox not in chrome.

Download that source code from here use firefox.

save that file as .

step 3:

Go to the below link to download the wgrib c code

From here you can download the wgrib.c source code use firefox.

save it as wgrib.c.

$ gcc wgrib.c -o wgrib

We are generating the wgrib object file.

$ sudo cp wgrib /usr/local/bin/

We are moving that binary wgrib file in to the system path /usr/loca/bin

step 4:

Now open the file,

  1. Look for the line:
    and change it to point to your copy of wgrib. For example,
  2. (Optional) Look for the line:
    $pdef_dir=’/usr/local/lib/grads’;and change it to point to your grads directory. In the future, some unviewable grids (ex. thinned grids, native eta) will be handled by interpolation files.
  3. Don’t forget to make the program executable (chmod 755 and put it on your PATH. i.e $ sudo cp /usr/local/bin/

Thats it … !

Now you can access the from the bash shell (terminal) itself.

Try the following usage of grib2ctl with your analysis and forecasting binary grib files.


For analyses:

$ grib_file >grib_file.ctl
$ gribmap -i grib_file.ctl -0 <– this is a zero
$ grads
Landscape mode? (no for portrait):

ga-> open grib_file.ctl

For forecasts:

$ -verf grib_file >grib_file.ctl
$ gribmap -i grib_file.ctl

$ grads
Landscape mode? (no for portrait):
ga-> open grib_file.ctl