Extracting scripts from these tutorials: Difference between revisions
From CASA Guides
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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. | 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. | ||
== Bad News == | |||
We started to use a syntax highlighter on these pages that makes things look very pretty but broke our script extractor. The following will act as a placeholder until we get the extractor running again! | |||
== How to Get the Script Extractor == | |||
Download the script extraction code. | |||
<source lang="bash"> | |||
# in bash | |||
ftp ftp.eg.bucknell.edu | |||
# log in anonymously with e-mail as password | |||
cd pub/jgallimo | |||
get extractCASAscript.py | |||
</source> | |||
== How to Use the Script Extractor == | |||
Make your newly acquired python script executable. | |||
<source lang="bash"> | <source lang="bash"> | ||
Line 17: | Line 35: | ||
This command will automatically generate a script called "Calibrating_a_VLA_Continuum_Survey.py." | This command will automatically generate a script called "Calibrating_a_VLA_Continuum_Survey.py." | ||
Revision as of 19:52, 28 October 2009
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.
Bad News
We started to use a syntax highlighter on these pages that makes things look very pretty but broke our script extractor. The following will act as a placeholder until we get the extractor running again!
How to Get the Script Extractor
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
How to Use the Script Extractor
Make your newly acquired python script 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://casaguides.nrao.edu/index.php?title=Example:_Calibrating_a_VLA_continuum_survey
This command will automatically generate a script called "Calibrating_a_VLA_Continuum_Survey.py."