nraonrao
 
NRAO Home > CASA > CasaRef
autoflag.setuvbin - Function

2.1.1 Sets up the UV Binner flagging method
Description

The uvbin method works by binning the data on a value vs. UV-distance plane (value is determined by the expr parameter – see the general autoflag module description for a description of this mechanism.) Data in underpopulated bins is then flagged.

The cut-off point for flagging may be expressed in one of two ways:

Uvbin can be asked to produce a value vs. UV-distance plot, and a plot of p(N). These plots are attached to the flagging report. Uuse of the econoplot mode is recommended when dealing with medium-to-large data sets, for significant reduction in plot file size and printing time.

Arguments





Inputs

thr

Population cut-off, as p(N) value.

allowed:

double

Default:

0.0

minpop

Population cut-off, as minimum bin count. Either thr or maxpop must be specified, or both.

allowed:

int

Default:

0

nbins

Number of bins (one number for both axes, or separate for UV, value)

allowed:

intArray

Default:

50

plotchan

Channel number (0-based) to plot, T for middle channel, or -1 for no plot

allowed:

int

Default:

-1

econoplot

Produce an economical plot (crowded bins are not resolved)

allowed:

bool

Default:

false

column

Which column to base flagging on

allowed:

string

Default:

MODEL CORR DATA

expr

Expression to use

allowed:

string

Default:

ABS I

fignore

Ignore existing flags

allowed:

bool

Default:

false

Returns
bool

Example

- af:=autoflag(’3C273XC1.MS’)  
- af.setdata()  
- af.setuvbin(nbins=[50,100],expr="- ABS RR LL",plotchan=40,econoplot=T)

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.