From CASA Guides
Revision as of 22:17, 1 January 2011 by Mkrauss (talk | contribs)
Jump to: navigation, search

Temporary edit link

edit me in CASA Guides


This is a collection of Python scripts to help process and analyze EVLA data. Although they are not officially supported, some authors may choose to provide contact information. A brief description on how to run each script is provided by the author. If you would like to contribute, and do not have access to the CASA Guides Wiki, you may email Miriam Krauss (mkrauss at

Plotting the weather table, obtaining observation-specific opacity information

plotWX weather table figure

Download script: File:Script

This script will plot weather table information in the MS (see example below) as well as return a list of estimated zenith opacity values for each spectral window.

from Script_plotWX import plotWX
myTau = plotwx('')

Importing, listing, plotting, and applying online flags

plotflags figure

Download script:

This script reads the Flags.xml table in the SDM directory, and parses the online antenna flags so that they can be listed, plotted, and applied to the MS. Note that the tbuff parameter is a padding value (in seconds) for creating the flag time ranges.

Here, flags are read in and listed, then plotted and applied. The plot file is saved to a file for future reference.

from Readflags import listflags, readflags, plotflags, useflags
myFlags = readflags('mySDMfile', tbuff=1.5)
useflags('', myFlags)

Listing observation information directly from the SDM files

Download script: File:List