|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
8.1.3 Lists
For lists of scans or IFs, such as in scanlist and iflist in the SDtasks, the tasks and functions require a comma-delimited Python list, e.g.,
The python range function can be used to generate a list of consecutive numbers, e.g.,
giving the same list as above,
CASA <4>: print scanlist
[241, 242, 243, 244, 245, 246]
Multiple ranges can be created by summing lists,
CASA <6>: print scanlist
[241, 242, 243, 244, 245, 246, 251, 252, 253, 254]
Note that in the future, the sd tools and SDtasks will use the same selection language as in the interferometric synthesis part of the CASA.
Spectral regions, such as those for setting masks, are pairs of min and max values for whatever spectral axis unit is currently chosen. These are fed into the tasks and tools as a list of lists, where each list element is a list with the [min,max] for that sub-region, e.g.,
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