NRAO Home > CASA > CASA Cookbook and User Reference Manual

1.4.6 Tools in CASA

The CASA toolkit is the foundation of the functionality in the package, and consists of a suite of functions that are callable from Python. The tools are used by the tasks, and can be used by advanced users to perform operations that are not available through the tasks.

It is beyond the scope of this reference to describe the toolkit in detail. Occasionally, examples will be given that utilize the tools (e.g. § 6.17). In short, tools are always called as functions, with any parmeters that are not to be defaulted given as arguments. For example:

   ia.open(’ngc5921.chan21.clean.cleanbox.mask’)  
   ia.calcmask(’"ngc5921.chan21.clean.cleanbox.mask">0.5’,’mymask’)  
   ia.summary()  
   ia.close()

uses the image tool (ia) to turn a clean mask image into an image mask. Tools never use the CASA global parameters.

To find what tools are available, use the toolhelp command:

---------> toolhelp()  
 
Available tools:  
 
 at : Juan Pardo ATM library  
 cb : Calibration utilities  
 cl : Component list utilities  
 cp : Cal solution plotting utilities  
 cs : Coordinate system utilities  
 cu : Class utilities  
 dc : Deconvolver utilities  
 fg : Flagging/Flag management utilities  
 ia : Image analysis utilities  
 im : Imaging utilities  
 me : Measures utilities  
 ms : MeasurementSet (MS) utilties  
 mp : MS plotting (data (amp/phase) versus other quantities)  
 pm : PlotMS utilities  
 po : Imagepol utilities  
 rg : Region manipulation utilities  
 tb : Table utilities (selection, extraction, etc)  
 tp : Table plotting utilities  
 qa : Quanta utilities  
 sl : Spectral line import and search  
 tf : Test flagger utilities  
 sm : Simulation utilities  
 vp : Voltage pattern/primary beam utilties  
 ---  
 pl : pylab functions (e.g., pl.title, etc)  
 sd : Single dish utilities  
 ---  

You can find much more information about the toolkit in the CASA User Reference Manual:

http://casa.nrao.edu/docs/casaref/CasaRef.html


More information about CASA may be found at the CASA web page

Copyright © 2010 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search