CAPS/NAP Menu

Table of Contents

  1. Introduction
  2. Browse
  3. Command
  4. Help

Introduction

The distributed wish startup file "wishrc.tcl" (which is copied to file ".wishrc" on unix systems) ends with the command "caps_nap_menu", which displays a GUI menu consisting of three buttons labelled Browse, Command and Help. This command "caps_nap_menu" is defined by the file "caps_nap_menu.tcl". Each of these three buttons is used to display a sub-menu detailed in the following sections.

Browse

The Browse menu provides access to browsers for Tcl variables and a variety of files. These file browsers typically provide facilities to select data from a file and Detailed help is available within each browser.
Tcl Variables
This facility for browsing Tcl variables is defined by the file browse_var.tcl. It can be used to display the names and values of all tcl variables (including arrays), but has particular facilities for those referencing NAOs. The menu buttons have the following functions:
namespace
Use tree widget to set the namespace.
list
List tcl variables in the namespace matching the glob pattern. Display a line for each matching tcl variable. This line contains the variable's name and value provided there is room. Otherwise the line is truncated. You can click on a line to display:
  • full value of an ordinary tcl variable or array whose line is truncated as above
  • a NAO as either text or graph/image as specified by the radio-button
help
Display Help on Tcl Variable Browser.
cancel
Remove Tcl Variable Browser widget.
AVHRR and ATSR Satellite Files
This item is only available if the CAPS package is loaded.
CIF Files
CIF files originated at Melbourne University. Their use has been largely replaced by netCDF but some data still exists in this format. This facility for browsing CIF files is defined by the file browse_cif.tcl.
HDF and netCDF Files
HDF and netCDF are two similar common file formats used for data in the form of arrays and grids, especially in the earth sciences such as Meteorology and Oceanography. This facility for browsing HDF and netCDF files is defined by the file hdf.tcl. This is a powerful tool which allows one to select a variable/SDS or attribute from a displayed tree, then (for variable/SDS) select a region within it.
Image Files
This facility for viewing image files is defined by the file vif.tcl. Standard Tk supports the PPM, PGM and GIF formats. If the package Img is installed then it will be used, giving support for BMP, XBM, XPM, PNG, JPEG and TIFF as well. The ActiveTcl distribution of Tcl/Tk includes Img.

Command

The Command menu allows the following common Tcl commands to be executed with a mouse click:
history
Display command history. This differs from the command-line history command in that it uses a scrolled window. Note that tkcon also provides:
  • History entry in main menu
  • History entry within File/Save
exit
Quit.

Help

The Help menu provides access to local and Web documentation on: Note that the Web versions may be more recent than the installed local documentation.

Author: Harvey Davies       © 2002, CSIRO Australia.       Legal Notice and Disclaimer
CVS Version Details: $Id: caps_nap_menu.html,v 1.3 2004/11/12 04:39:34 dav480 Exp $