NRAO Home > CASA > CASA Cookbook and User Reference Manual
1.4.5.3 The go Command

You can execute a task using the go command, either explicitly

CASA <44>: go listobs  
---------> go(listobs)  
Executing:  listobs()  
...

or implicitly if taskname is defined (e.g. by previous use of default or inp)

CASA <45>: taskname = ’clean’  
CASA <46>: go  
---------> go()  
Executing:  clean()  
...

You can also execute a task simply by typing the taskname.

CASA <46>: clean  
---------> clean()  
Executing:  clean()  
...

The go command can also be used to launch a different task without changing the current taskname, without disrupting the inp process on the current task you are working on. For example

   default ’gaincal’ # set current task to gaincal and default  
   vis = ’n5921.ms’  # set the working ms  
   ...               # set some more parameters  
   go listobs        # launch listobs w/o chaning current task  
   inp               # see the inputs for gaincal (not listobs!)

ALERT: Doing go listobs(vis=’foo.ms’) will currently change the taskname, and will change vis, which might not be what is desired.


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