|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
1.3.7.2 Lists and Ranges
Sometimes, you need to give a task a list of indices. If these are consecutive, you can use the Python range function to generate this list:
CASA <2>: print iflist
[4, 5, 6, 7]
CASA <3>: iflist=range(4)
CASA <4>: print iflist
[0, 1, 2, 3]
See Appendix B.4 for more information.
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