Extracting scripts from these tutorials
Hopefully the scripts contained in this cookbook are (a) useful and (b) work. They were however developed with CASA still a work in progress, and so scripts may break as commands, arguments, and keywords change.
The code linked below is a rudimentary python script to extract CASA code from a given cookbook page and save it as a script. To run it, download to "extractCASAscript.py," and make sure it is executable.
# in bash chmod u+x extractCASAscript.py
To run it, issue the python script name and give the URL as the argument. For example.
# in bash extractCASAscript.py http://casapedia.wikia.com/wiki/Example:_Calibrating_a_VLA_continuum_survey
This command will automatically generate a script called "Calibrating_a_VLA_Continuum_Survey.py."
Download the script extraction code.
# in bash ftp ftp.eg.bucknell.edu # log in anonymously with e-mail as password cd pub/jgallimo get extractCASAscript.py