2.1 autoflag - Module autoflag

Module for automatic flagging of synthesis data
include autoflag.g

  2.1.1 autoflag - Tool
    autoflag.autoflag - Function
    autoflag.settimemed - Function
    autoflag.setnewtimemed - Function
    autoflag.setdata - Function
    autoflag.setfreqmed - Function
    autoflag.setsprej - Function
    autoflag.setuvbin - Function
    autoflag.open - Function
    autoflag.run - Function
    autoflag.summary - Function
    autoflag.help - Function
    autoflag.reset - Function
    autoflag.resetall - Function
    autoflag.setspwid - Function
    autoflag.setfield - Function
    autoflag.setfreqs - Function
    autoflag.setchans - Function
    autoflag.setcorr - Function
    autoflag.setantenna - Function
    autoflag.setantennaID - Function
    autoflag.setbaseline - Function
    autoflag.settimerange - Function
    autoflag.setautocorrelation - Function
    autoflag.settimeslot - Function
    autoflag.setdtime - Function
    autoflag.setclip - Function
    autoflag.setflagrange - Function
    autoflag.setquack - Function
    autoflag.setunflag - Function
    autoflag.setnewselector - Function
    autoflag.close - Function
    autoflag.done - Function

Description The autoflag module provides automatic synthesis flagging capabilities within CASA. The primary purpose of this module is to flag data inside a MeasurementSet using a number of different algorithms and heuristics.

The facilities of the autoflag module are made available in Glish by including the following script:

- include ’autoflag.g’  
T

where a hyphen precedes user input. The Glish response is indicated without the prompt.

An autoflag tool is created and attached to a specified measurement set as indicated in the following example:

- af:=autoflag(’3C273XC1.MS’)

A variety of algorithms (called methods in this context) can be applied for any given autoflag tool. A setdata method allows a user to apply setmethods to the whole measurement set with default parameters or to a subset of the measurement set by specifying parameters. Individual methods are set up in advance by calling Glish functions of the tool, i.e.: af.setmethod(parameters). Afterwards, a call to af.run(options) actually applies all the specified methods simultaneously. Here is an example:

- af:=autoflag(’3C273XC1.MS’)  
- af.setdata()  
- af.settimemed(thr=6,hw=5)  
Added method 1: timemed (TimeMedian)  
   *thr         = 6  
   *hw          = 5  
    rowthr      = 10  
    rowhw       = 6  
    column      = DATA  
    expr        = ABS I  
    debug       = F  
    fignore     = F  
T  
- af.setuvbin(nbins=100,thr=.01)  
Added method 2: uvbin (UVBinner)  
   *thr         = 0.01  
   *nbins       = 100  
    plotchan    = F  
    econoplot   = T  
    column      = DATA  
    expr        = ABS I  
    fignore     = F  
T  
- af.settimemed(thr=5,hw=5,expr="- ABS XX YY")  
Added method 3: timemed (TimeMedian)  
    thr         = 5  
   *hw          = 5  
    rowthr      = 10  
    rowhw       = 6  
    column      = DATA  
   *expr        = - ABS XX YY  
    debug       = F  
    fignore     = F  
T  
- af.run(trial=T)  
   lots of interesting messages  
-

Here, three methods -- a UV binner and two time-median filters -- are set up and executed. Note the following crucial points:

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 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

Updated daily during alpha development.