nraonrao
 
NRAO Home > CASA > TaskRef

0.1.45 newflagdata

Requires:

Synopsis Flag/Clip data based on selections Description

The task will select a subset of data explicitly for flagging (unflagging) or for clipping.

Arguments





Inputs

vis

name of input visibility file

allowed:

string

Default:

setdata

Create a subset of the MS to operate on.

allowed:

bool

Default:

False

mode

manualflag,autoflag,summary,query,extend

allowed:

string

Default:

baseline

Select data based on baseline

allowed:

string

Default:

field

Select data based on field name or index

allowed:

string

Default:

correlation

Select data based on correlation

allowed:

string

Default:

spw

Select data based on spectral window and frequency/channel

allowed:

any

Default:

variant

uvrange

Select data based on uv range

allowed:

string

Default:

selecttime

Select data based on time

allowed:

string

Default:

scan

Select data based on scan number

allowed:

string

Default:

feed

Select data based on feed number

allowed:

string

Default:

array

Select data based on the array

allowed:

string

Default:

setclip

Setup Clipping [clipexpr,[min,max],outside(T/F)]

allowed:

string

Default:

setquack

Setup VLA Quack [quack interval, quack length] - NOT TESTED

allowed:

record

Default:

autocorr

Flag autocorrelations

allowed:

bool

Default:

False

unflag

Unflag the data specified

allowed:

bool

Default:

False

flagcorr

allowed:

string

Default:

Select flags based on correlation

flagfield

Select flags based on field name or index

allowed:

string

Default:

flaguvrange

Select flags based on uv range - NOT IMPLEMENED

allowed:

string

Default:

flagtime

Select flags based on time

allowed:

string

Default:

flagscan

Select flags based on scan number - NOT IMPLEMENTED

allowed:

string

Default:

flagfeed

Select flags based on feed number - NOT IMPLEMENTED

allowed:

string

Default:

flagarray

Select flags based on the array - NOT IMPLEMENTED

allowed:

string

Default:

Returns
void

Example

 
 
Flag/Clip data based on selections:  
The task will select a subset of data explicitly for  
flagging (unflagging) or for clipping.  
 
Keyword arguments:  
vis -- Name of input visibility file (MS)  
default: none example: vis=’ngc5921.ms’  
        setdata -- Create a subset of the MS to operate on.  
                default: ’False’ : operate on the entire MS  
        mode -- Mode of operation.  
                options: ’manualflag’,’autoflag’,’summary’,’query’,’extend’,’run’  
baseline -- Select data based on baseline  
default: ’’ (all); example: baseline=’5&6’ baseline 5-6  
baseline=’5&6;7&8’ #baseline 5-6 and 7-8  
baseline=’5’ # all baselines with antenna 5  
baseline=’5,6’ # all baselines with antennas 5 and 6  
spw -- Select data based on spectral window and channels  
default: ’’ (all); example: spw=’1’  
spw=’<2’ #spectral windows less than 2  
spw=’>1’ #spectral windows greater than 1  
                spw=’0:0~10’ # first 10 channels from spw 0  
                spw=’0:0~5;56~60’ # multiple separated channel chunks.  
        correlation -- Correlation types  
                default: ’’ (all);  
                example: correlation=’RR,LL’  
field -- Select data based on field id(s) or name(s)  
default: ’’ (all); example: field=’1’  
                field=’0~2’ # field ids inclusive from 0 to 2  
field=’3C*’ # all field names starting with 3C  
uvrange -- Select data based on uvrange(s)  
default: ’’ (all); example:  
uvrange=’0~1000’ # uvranges from 0-1000 meters  
uvrange=’>4kl’ #uvranges greater than 4 kilo lambda  
selecttime  -- Select data based on time range:  
        default = ’’ (all); example,  
selecttime = ’YYYY/MM/DD/hh:mm:ss~YYYY/MM/DD/hh:mm:ss’  
  Note: YYYY/MM/DD can be dropped as needed:  
selecttime=’09:14:0~09:54:0’ # this time range  
selecttime=’09:44:00’ # data within one integration of time  
selecttime=’>10:24:00’ # data after this time  
selecttime=’09:44:00+00:13:00’ #data 13 minutes after time  
scan -- Select data based on scan number - New, under developement  
default: ’’ (all); example: scan=’>3’  
feed -- Selection based on the feed - NOT IMPLEMENTED YET  
        array -- Selection based on the antenna array - NOT IMPLEMENTED YET  
 
        setclip -- Setup Clip operation. Flag OUTSIDE this range  
                [clipexpr, clipminmax,outside]  
                default: [’ABS I’,[],True]  
        clipexpr -- Clip using the following:  
         default: ’ABS I’; example: clipexpr=’RE XX’  
         Options: ’ABS’,’ARG’,’RE’,’IM’,’NORM’ + ’ ’ +  ’I’,’XX’,’YY’,’RR’,’LL’  
        clipminmax -- Range of data (Jy) that will NOT be flagged  
         default: [] means do not use clip option  
         example: [0.0,1.5]  
                outside -- Clip OUTSIDE the range ?  
                        default: True  
                        example: False -> flag data WITHIN the range.  
        setquack -- [Scan Interval, Quack length] for VLA quack-flagging  
                     default: [] means do not use quack option  
                     example: [15,2]  
        autocorr -- Flag autocorrelations ?  
                default: False  
                options: True,False  
unflag -- Unflag the data  
default: False (i.e. flag); example: unflag=True  
 
 

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.