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

2.1.1 Sets up the freq-median flagging method
Description

The freqmed method uses a median-in-frequency filter. It is very similar to timemed, except that it is based on a sliding median in frequency:

mxcbt = median{dxc′bt, where |c′- c| ≤ δ}

In all other respects this method is identical to timemed, hence we refer you you to the settimemed description for all details.

Arguments





Inputs

thr

Flagging threshold

allowed:

double

Default:

5.0

hw

Half-window for the sliding median

allowed:

int

Default:

10

rowthr

Row flagging threshold

allowed:

double

Default:

10.0

rowhw

Half-window for the sliding median of the MAD

allowed:

int

Default:

10

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.setfreqmed(thr=5,hw=5,expr="- ABS RR LL")

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.