Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous
Next: Future Plans Up: DISH: The Single Dish Environment in AIPS++ Previous: The DISH Graphical User Interface

The DISH Command Line Interface

Underlying each GUI operation are glish commands which are available to the user. Users who wish to do complex tasks not available through the DISH Graphical User Interface or who want to capture existing operations into a glish script will need to use this command line interface to DISH. The trace tool, when active, shows these underlying glish commands as each GUI operation occurs. These can be used to simply learn how the GUI works or the text from that window can be copied to an editor and used as the basis for a glish script.

Figure 2: DISH Command Line Interface Example
\begin{figure}
\begin{verbatim}rawdata.setlocation(1)  ...

All of the values in the Results Manager can be manipulated at the glish command line. These results can then be returned to the Results Manager. Figure 2 shows a simple example which illustrates this. The goal in this example is to reduce an on-off total power scan pair by extracting the ``on'' and the ``off'' source scans from an already opened data set, constructing the difference scan, and inserting the result in the Results Manager. In this example, rawdata is a previously opened collection of SDRECORDs available in the Results Manager. In rawdata, an on-source scan is located at the first record and an off-source scan is located at the third record. Line 1 makes sure that rawdata points at the first record. The data is then retrieved from that record and assigned to on. This is repeated for the off-source data which is assigned to off. The result is initialized by simply making result a copy of on. This sets the data structure and header words appropriate for this data. The difference of the two data arrays divided by the off data array is calculated in line 6. Finally, in line 7, result is added to the Results Manager. The final argument identifies this result as an SDRECORD. It is then available to be plotted automatically when the user selects it.


next up previous
Next: Future Plans Up: DISH: The Single Dish Environment in AIPS++ Previous: The DISH Graphical User Interface
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15