GrADS Script Library Overlays a land or ocean mask that exactly fits the coastal outlines. Requires the following supplemental data files:
lpoly_lowres.asc and lpoly_mres.asc and lpoly_hires.asc
opoly_lowres.asc and opoly_mres.asc and opoly_hires.asc
See instructions in script header for using lpoly_US.asc to mask out non-US areas. Demonstrates how to use gxout bar and errbar to draw a box and whisker plot and

Scripts to draw a long rectangular color legend next to shaded plots. is the original version -- just the filled rectangles with labels
cbarn has some added features and arguments -- it draws outlines and triangular endpoints
cbarm will look better if using 30+ colors -- labels are drawn at appropriate intervals Draws a small fan-shaped color legend in the corner of shaded plots.
Scripts to draw a legend for line graphs.
Creates a color table. See additional documentation.
Draws a line connecting user's mouse clicks.
Defines a variety of colors using the set rgb command.
Illustrates the use of q defval and set defval commands. Demonstrates a way to use the shapefile interface in GrADS by drawing the Palmer Drought Severity Index (PDSI) values for U.S. climate divisions.
Displays all the characters in a font set.
Displays a field interpolated to a specified isentropic level.
Writes NetCDF, HDF-SDS or GRIB files from GrADS. See additional documentation. Creates a background map image that shows topographic texture. It requires a DODS-enabled version of GrADS and also uses the external ImageMagick utility "combine".
Automates settings for a variety of useful map projections.
Calculates moisture convergence.
These scrips draw a 10-day meteogram based on NCEP GFS forecast data, which is accessed through the GrADS Data Server. First run with an OPeNDAP-enabled build of GrADS to download the data to a local file. Then run to draw the meteogram. This script uses command line arguments to build a data descriptor file to open pre-projected (lambert conformal) NARR netCDF data in GrADS (version 1.9b4 or later).
panels.gsf and
Scripts to create global variables that contain the 'set vpage' commands for a multi-panel plot. These also illustrate the dynamic loading of script functions.
Illustrates the use of the scripting language math funcitons.
Displays a field interpolated to a specified pressure level.
Draws a SkewT/LogP Diagram. (Version 2.0.a6) Defines a set of rainbow colors and draws a demo plot; uses to draw a color bar This script simulates the old 3-arg sdfopen for templating
Delays display while command sequence is entered by user, then executes all at once.
Draws a string located at position of user's mouse click.
Calculates the SWEAT Index given relative humidity, temperature, and wind components.
Draws forward and backward trajectories in the horizontal plane.
Similar to open except it checks the list of current files to see if the specified file has already been opened. If it has been opened, it changes the default file number to the previously opened file instead of opening the same data file again.
Displays available weather symbols.
Controls an animated display.
Displays a field interpolated to a specified height level.
A simple way to zoom into a plot.