| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
The autoflag module provides automatic synthesis flagging capabilities within AIPS++. 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:
The following functions are currently recognized: ABS, ARG, RE, IM, NORM. Any correlations present in the measurement set are recognized.
autoflag
Automatic synthesis flagging
Next: autoflag - Tool
Up: Synthesis
Previous: Synthesis
  Contents
  Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc.,
Washington, D.C.
Return to AIPS++ Home Page
2006-10-15