Some people are lazy and lazy people write scripts. Here are some
of my GrADS scripts.
is a script to help plot time series of monthly fields. For example, you have
40 years of monthly data and you just want to plot a time series of
is a script to change the type of map. The script is easy to use,
just type "run map" and answer the prompt. Once you figured out the
various maps, you can save time by typing "run map [map type]".
is an easy way plot multiple graphs. For example, "run page left" will
set vpage to the left side of the page. There are many
is very similar to page.gs. The only difference is that the margins are
set for viewgraphs.
- rgbset.gs v2
modification of rgbset.gs (by Jae Schemm). Defined grey, black, white and
sets default colors. (Added 5-18-97)
sets up the color table (by Jae Schemm).
is a GrADS do-loop. For example, "run loop i 0 20 2" will run the next
N GrADS commands for i=0,20,2 where "i" is an element of (lat, lon, lev, t, x, y, z).
is a GrADS script to display wind barbs. This script dynamically
sets the skip parameter based on the plot dimensions. Doesn't
do a great job on polar stereographic plots.
takes the current image and saves it in /tmp/meta.ps as a color postscript file.
This script is easily modified for DOS and/or to print the resulting postscript file.
animates better than the simple "d hgt". Does contour
labels, time stamps, double buffering and even has selectable speeds.
The script needs to be configured.
Go to ftp://ftp.cpc.ncep.noaa.gov/wd51we/grads.
I needed to make a number of view graphs for a talk. Most of my view graphs
had multiple plots per page. In the past, I wrote scripts that used
pagetrans.gs to make the plots. This time I wanted to be more efficient!
I wanted to combine plots that I had already made. Rather than use a
color photocopy machine I looked for a software solution. PSutils and
a small perl script solved my problems.
Some GrADS links.
GrADS (v1.5) has a bug in its postscript files. The background color fill
doesn't cover the whole page (it leaves a 1/2" border). This UNIX script
will fix the postscript file so that the background color fill will
fill the whole page. This script only works on US letter-size paper only.
People using A4 paper will have to modify the script. The script
is named postfix
and is used by
As always, these scripts are "as is". Send comments to