Extracting scripts from these tutorials: Difference between revisions
From CASA Guides
Jump to navigationJump to search
Line 46: | Line 46: | ||
* 30 Oct 2009: Script created -- jfg. | * 30 Oct 2009: Script created -- jfg. | ||
* 17 Dec 2009: Fixed a bug that caused the script to drop brackets [] & {} incorrectly. Added script pauses for interactive commands viewer, plotms, plotxy, and plotcal. -- jfg | * 17 Dec 2009: Fixed a bug that caused the script to drop brackets [] & {} incorrectly. Added script pauses for interactive commands viewer, plotms, plotxy, and plotcal. -- jfg | ||
* 25 Feb 2010: Some minor bug fixes. -- jfg | |||
--[[User:Jgallimo|Jack Gallimore]] 21:13, 3 November 2009 (UTC) | --[[User:Jgallimo|Jack Gallimore]] 21:13, 3 November 2009 (UTC) |
Revision as of 09:46, 26 February 2010
Hopefully the scripts contained in this documentation 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. We developed this script extractor to allow us to easily extract scripts from these pages and run them. Feel free to try it!
How to Get the Script Extractor
Download the script extraction code.
# in bash
ftp ftp.cv.nrao.edu
# log in anonymously with e-mail as password
cd NRAO-staff/jgallimo
get extractCASAscript.py
Wget may be even simpler if you have it installed.
# in bash
wget ftp://ftp.cv.nrao.edu:/NRAO-staff/jgallimo/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=Calibrating_a_VLA_5_GHz_continuum_survey
This command will automatically generate a script called "CalibratingaVLA5GHzcontinuumsurvey.py"
Version Notes
- 30 Oct 2009: Script created -- jfg.
- 17 Dec 2009: Fixed a bug that caused the script to drop brackets [] & {} incorrectly. Added script pauses for interactive commands viewer, plotms, plotxy, and plotcal. -- jfg
- 25 Feb 2010: Some minor bug fixes. -- jfg
--Jack Gallimore 21:13, 3 November 2009 (UTC)