NRAO Home > CASA > CASA Toolkit Reference Manual
agentflagger.selectdata - Function

2.2.1 Select the data based on the given parameters. For unspecified parameters, the full data range is assumed. All data selection parameters follow the MS Selection syntax.
Arguments





Inputs

config

The record (dictionary) config may be given or not. If it is not given, and no specific parameter is given either, the whole MS will be selected. The record may contain any data selection parameters supported by MS Selection such as:

allowed:

record

Default:

field

Field indices or source names : example : ’2,3C48’

allowed:

string

Default:

spw

Spectral Window Indices or names : example : ’1,2’

allowed:

string

Default:

array

Array Indices or names : example : ’VLAA’

allowed:

string

Default:

feed

Feed index or name : example : ’1,2’ (not supported yet)

allowed:

string

Default:

scan

Scan number : example : ’1,2,3’

allowed:

string

Default:

antenna

Baseline number : example : ’2,3,4,5’

allowed:

string

Default:

uvrange

UV-distance range, with a unit : example : ’2.0-3000.0 m’

allowed:

string

Default:

timerange

Time range, as MJDs or date strings : example : ’xx.x.x.x.x~yy.y.y.y.y’

allowed:

string

Default:

correlation

Correlations/polarizations : example : ’RR,LL,RL,LR,XX,YY,XY,YX,Sol1’

allowed:

string

Default:

intent

Scan intent : example : ’*CAL*, *BAND*’

allowed:

string

Default:

observation

Observation Id : example : ’2~4’

allowed:

string

Default:

Returns
bool

Example

 
Select the whole MS  
af.selectdata()  
 
Select a portion of the MS  
myrecord={}  
myrecord[’scan’]=’1~3’  
myrecord[’spw’]=’0:1~10’  
af.selectdata(myrecord)  
 
Another way to select a portion of the MS  
af.selectdata(scan=’3~5’, spw=’0’)  

__________________________________________________________________


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