# Using GrADS with Athena Widgets

Previous section: Writing the sample script | Next section: Reference section

# Going further...

The sample script introduced in the previous section has covered most of the GAGUI functions and callbacks. However, there are just a few things that were left out that you may find handy sometimes. Please consult the following sample scripts:

- sample.gui - this is the script that we covered in the previous section

- sample2.gui - a slight variation of sample.gui with a different layout (single row).

- melrose.gui - similar to sample.gui but customized for DAO's visualization server (melrose.gsfc.nasa.gov). Here is an example of how to associate Help menu items with documents on the Web. It also contains buttons to open files from the GEOS-1 Reanalysis residing on a local disk. DAO users on melrose can run this script with the following GrADS command:

  > ga-> gui /ford1/local/lib/grads/gui/melrose.gui

  or they can set

  > setenv GAGUI /ford1/local/lib/grads/gui/melrose.gui

  for starting it automatically.

- ncep.gui - similar to sample.gui but has one additional row which allows the user to open files from the NCEP/NCAR Re-analysis CDROM, the disc that came with the Bulletin of the American Meteorological Society (Kalnay et al. 1996). This script illustrates the chdir() function which allows the changing current directory to the CDROM mounting point. It also includes a Help button which displays ASCII documentation files in the CDROM.
  Note: This is script will not work with the Annual Re-analysis CDROMs being distributed by NCEP.
  Exercise: adapt this script for the Annual Cdroms and contribute your script :-)

- window.gui - this script illustrates how to create a secondary GUI window which can be dismissed when no longer needed. For trying it, start one of the main GUI scripts such as sample.gui, and from the File menu, click on GUI, entering the name of this script (which, of course, should be copied to your local disk). A secondary window will pop up with buttons for opening files in the NCEP/NCAR Re-analysis CDROM, similar to the middle row in ncep.gui.

Of course, for getting all the glory details you will need to read the Reference section.

Previous section: Writing the sample script | Next section: Reference section