|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
B.10 Macros
Macros can be made for easy re-execution of previous commands. For example to store the commands 13-15 to the macro ’example’:
Macro ‘example‘ created. To execute, type its name (without quotes).
Macro contents:
x=1
y=3*x
z=x**2+y**2
CASA [32]: z
Out[32]: 6
CASA [33]: z=10
CASA [34]: example
Out[34]: Executing Macro...
CASA [35]: z
Out[35]: 6
CASA [36]:
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