NRAO Home > CASA > CASA Toolkit Reference Manual
sd.scantable.clip - Function

5.1.2 Flag data by its spectral value
Description

Flag the selected data outside a specified range (in channel-base).

The method requires to set upper and lower threshold for spectral value. If clipoutside is True, the data outside the range will be flagged/unflagged. On the other hand, if it is False, the data inside the range will be flagged/unflagged. The operation if flag or unflag is controlled by the unflag argument.

Note that the operation will always be applied to this scantable regardless of the value of sd.rcParams[’insitu’].

Arguments





Inputs

uthres

Upper threshold

allowed:

float

Default:

None

dthres

Lower threshold

allowed:

float

Default:

None

clipoutside

True for flagging data outside the range, False for flagging data inside the range

allowed:

bool

Default:

True

unflag

If True, unflag the data

allowed:

bool

Default:

False





Returns

Example


More information about CASA may be found at the CASA web page

Copyright 2016 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