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


next up previous contents
Next: A Guide to a Typical AIPS++ Data Reduction Up: Getting Started in AIPS++ Previous: The File Catalog GUI

Subsections


A Practical Demonstration: Making an Image from a visibility dataset

To demonstrate the use of the Tool Manager, we will now make an image. For completeness, we also show how to accomplish the same goal using the Glish command line.

Loading package and module definitions

When you start AIPS++, only package general, which is for general processing, is automatically loaded and readily available for use. In order to access other packages or modules it is necessary to explicitly load them.


Loading definitions


GUI
Any operation from the Tool Manager (e.g. creating a new tool or running a global function) normally loads the required modules automatically.
CLI
The include command can be used to load either a whole package or individual modules:
include 'synthesis.g'  # load the synthesis package
include 'table.g'      # load the table tool
include 'ms.g'         # load the module ms
include 'msplot.g'     # load the ms plotting function
include 'utility.g'    # load the utilities module



If you write your own script (e.g., myscript.g), then to execute the script:


Executing a script


GUI
In the File Catalog GUI, double click on myscript.g
CLI
Use the glish 'include' command:
include 'myscript.g'   # execute myscript.g



Create a UV Data Set & Make an Image

For our example, we will need to create a UV data set in the AIPS++ format from the data which has been supplied with the AIPS++ distribution for test purposes. It is a continuum data of the radio source 3C273, taken using the VLA C-array at a frequency near 8.5 GHz. To create this data set in your directory in standard AIPS++ format, do the following:


Creating a test MeasurementSet


GUI
Run the global function synthesis.imager.imagermaketestms
CLI
include 'imager.g'              # Load imager definitions
imagermaketestms('3C273XC1.ms') # Make the MeasurementSet



The global function imagermaketestms creates the MeasurementSet with the name '3C273XC1.ms' from s FITS data file supplied with the AIPS++ distribution.

If the File Catalog is running, click the Refresh or Show button on the File Catalog GUI and notice that a new file name '3C273XC1.ms' has been added to the directory. Select this file by clicking it and then click Summarize to get a brief summary of the MeasurementSet on the Logger window.

To make images from this UV data set:


Making images from a MeasurementSet


GUI
CLI
myimager:=imager('3C273XC1.ms')
myimager.setimage(cellx='0.7arcsec',celly='0.7arcsec',
                  nx=300,ny=300)
myimager.clean(image='3C273XC1.restored', model='3C273XC1.clean',
               residual='3C273XC1.residual')



When these operations are finished, click the Show button on the File Catalog GUI to see the new entries.

View an Image using the Viewer

Images are best viewed using the Viewer. The Viewer can be invoked in a number of different ways.


Viewing an image


GUI
CLI



This pops up a window for viewing the image. Be patient when doing this for the first time in a session. Loading the Viewer currently takes about 10-15 seconds. Subsequent views will be very quick. More than one image can be viewed at the same time. Double clicking on a second image brings up another display panel.


Figure 8: Viewer
Brightness/colormap fiddling..
The color map can be changed in a number of ways. The colormap may be fiddled directly by down-clicking and moving the middle button of the mouse. The data maximum and minimum, scaling power, and type of color map can be set in the Adjust panel.
Adjust
Use the Adjust... to obtain a control for the display. This allows a large degree of control over the displayed image and axes.
Zoom/Unzoom
To zoom, down-click the left mouse button and drag out the region you want to zoom. Then double-click inside the selected area. This will zoom. To unzoom, press the Unzoom button. To cancel selection of a region, use the Escape key.
Clear
Pressing the Clear button clears the display
Print
The Print button allows printing of the image, as displayed, to either Postscript or to the X11 pixmap format.
Animation
To step plane by plane, or continuously through the other axes of the image, you can use the tape-deck buttons on the right hand side of the Viewer. To change the third axis displayed, use the Adjust control.
Selection of region to display
This may be done interactively using the zoom capability described above, or using the Image Region specification in the Adjust panel e.g. to display the inner quarter of the image, enter drm.quarter() in the Image Region entry.

The Viewer has many other capabilities. For example, to overlay a raster display with a contour display (not necessarily of the same image), follow these steps:


Displaying a contour on top of a raster


1.
On the File menu, select Data Manager
2.
On the Data Manager window, Press the Load data panel.
3.
In the Display Type window, select Contour
4.
In the Dataset window, select image:3C273XC1.restored (you could select a completely different image here)
5.
Back on the Viewer, go to DisplayData, and select the second image.
6.
To adjust the contour levels, use the Adjust button on the Viewer or the Adjust Data window on the Data Manager.

Browse an MS using the Table Browser

The MeasurementSet 3C273XC1.ms and the images 3C273XC1.restored are AIPS++ Tables. As mentioned earlier, a Table in AIPS++ is actually stored as a directory with the same name as the Tbale. For instance, in the File Catalog GUI click on the file name 3C273XC1.ms and then click Show. The File Catalog GUI now displays the list of files in the directory named 3C273XC1.ms. AIPS++ knows to recognize this whole collection of files and subdirectories as a single Table. Similarly, 3C273XC1.restored is a Table representing the restored image and contains many files under the directory with its name. Restore the File Catalog GUI to the display the contents of your main AIPS++ directory by selecting [..] in the File Name column and click Show.

Although you may not do this during regular processing of the data from a telescope, it is useful at this stage to have a look at the insides of an MS and how it is orgnized in AIPS++. To do this you will use the Table Browser GUI..

The Table Browser GUI has many options, for example, you can pull out all of the entries of a given column into a Glish array, manipulate it and put it back. You can also plot one column, or a mathematical combination of several columns against other columns or their combinations. Here you will use it just to browse the Table.


Browsing a MeasurementSet




GUI
In the File Catalog, double click on the MeasurementSet name
CLI
t:=table('3C273XC1.ms') # to make a table tool.
t.browse()              # to invoke the browse function.
t.close()               # when finished, close the tool


Figure 9: View of MeasurementSet with a Table Browser GUI
The name of your Table may not be exactly as shown in Figure 9. For convenience in viewing, use the mouse and stretch the Table Browser GUI to occupy the entire width of your screen. Wait about 10 seconds while several columns of data appear in the window. The row number is given in the first column. It stretches all the way to the number of visibilities (7669 in this case). However, at a given time the Table Browser GUI reads only about 1000 rows. Now use the horizontal scroll bar at the bottom of the Table Browser GUI to look at the various columns (UVW, ANT1, ANT2). This is basically to give you a feel for the MS and also to show that the insides of any AIPS++ Table can be examined or modified. On the Table Browser GUI, use the View menu and choose Table Summary. A new Summary GUI appears on your screen as shown in Figure 10.


Figure 10: Table Summary GUI
The top part of this GUI gives a brief summary of the MS and the bottom part contains a list of keywords for the MS. Scroll down the list of keywords using the scroll bar on the right side of the GUI. Each one of these keywords represent a sub-Table containing information indicated by the keyword. Click the keyword ANTENNA, and notice that another Table Browser GUI comes up giving details of this sub-Table. Browse the various columns of this Table using the horizontal scroll bar.

After you examine this Table, be sure to use the Dismiss button on this GUI to close the window. Otherwise you will end up with a lot of GUIs on your screen.

Having browsed through some of the sub-Tables of the MS, you can now dismiss the Summary GUI by clicking Dismiss, and remove the Table Browser GUI by choosing Exit under its File menu.

Another example of an Image is the Table 3C273XC1.restored. Images are best viewed using the Viewer, which is invoked by selecting the file name on the File Catalog GUI and clicking the View button. However, although it is not very instructive, you can also use the Table Browser GUI to get a feel for the Image Table.


next up previous contents
Next: A Guide to a Typical AIPS++ Data Reduction Up: Getting Started in AIPS++ Previous: The File Catalog GUI   Contents
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