Capturing Return Values: Difference between revisions

From CASA Guides
Jump to navigationJump to search
Lchomiuk (talk | contribs)
Created page with 'Some tasks return information to the interface. For example, the imstat task returns a Python dictionary with the image statistics in it. To catch these return statistics, yo…'
(No difference)

Revision as of 17:30, 6 June 2010

Some tasks return information to the interface. For example, the imstat task returns a Python dictionary with the image statistics in it. To catch these return statistics, you must assign a variable to the task call. For example:

xstat=imstat('ngc5921.clean.image')

To see what is in the dictionary, type the variable name (in this case, xstat) at the command line.