Skip Navigation Links 
NOAA logo - Click to go to the NOAA home page National Weather Service   NWS logo - Click to go to the NWS home page
Climate Prediction Center

About Us
   Our Mission
   Who We Are

Contact Us
   CPC Information
   CPC Web Team

HOME > Monitoring_and_Data > Oceanic and Atmospheric Data > Reanalysis: Atmospheric Data > GrADS Scripts

GrADS Scripts

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 January values. Instructions are included.
  • 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]". Updated (5-28-97).
  • 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 options.
  • is very similar to The only difference is that the margins are set for viewgraphs.
  • v2 modification of (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/ 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

GrADS Utilities

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 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. Download: grads_pstools.tar (70k)
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

NOAA/ National Weather Service
National Centers for Environmental Prediction
Climate Prediction Center
5830 University Research Court
College Park, Maryland 20740
Climate Prediction Center Web Team
Page last modified: May 15, 2005
Disclaimer Privacy Policy