NRAO Home > CASA > CASA Toolkit Reference Manual
msplot.setdata - Function

1.3.3 Select a subset of the measurement set to operate on.


Description

Select a subset of the measurement set. All plots will operate on this subset of the measurement set based on the values given.

All of the Index fields expect lists of integers. All of the Name fields accept strings. Where both indices and expressions are allowed as inputs (antenna’s for example), they will be combined together when selecting the data.

The expression strings contain values separated by ’,’. The wildcard character ’*’ can be used with the names. The ’¿’ and ’¡’ characters can be used to indicate values that are greater then, or less then (respectively) a particular value.

Note: that integer values in the antennaNames list will be interpreted as indices. The ’~’ indicates a range for values.

Spectral windows names are bit of a special case as channel information can be specified too. Spectral windows are in the folling format: (spwlist):(channellist) where the spetral window and channel list follow the expression conventions listed above. ”RR,LL,RL” ”[RR LL RR]” ”(XX)” where different types of polarizations are separated by a space or a comma.

Arguments





Inputs

baseline

Baseline selection expression.

allowed:

string

Default:

field

Field selection string.

allowed:

string

Default:

scan

Scan selection string.

allowed:

string

Default:

uvrange

UV Range selection string.

allowed:

string

Default:

array

Array selection string.

allowed:

string

Default:

feed

Feed selection string.

allowed:

string

Default:

spw

Spectral Window selection string.

allowed:

string

Default:

correlation

Correlation selection string.

allowed:

string

Default:

time

Time selection values are in the form: YYYYMMMMDDhh:mm:ss~YYYYMMDDhh:mm:ssŝtep where the first or second term may be dropped, and more then one range may be specified. Ranges are separted by a ”,”. The step value is a real value representing the number of seconds to skip or average, depending on the value given.

allowed:

string

Default:

Returns
bool

Example

 
# create a msplot tool and set the subset data for plotting.  
  mp.open( msname=’./data/3C273XC1.ms’);  
 
# Select all antenna’s that begin with VLA or N, field 1,2 and 3,  
# ’RR’ and ’LL’ correlations, and spectral windows 3,4, and 5.  
  mp.setdata( antennaNames=’VLA:N*’, fieldNames=’1~3’, correlations=’RR, LL’,\  
      spwIndex=[3,4,5] );  
 
# Select all fields, LR correlations, uvdists greater than 125 kilolambda,  
# and times of June 27, 1989 at 3:31:40.  
  mp.setdata( fieldNames’*’, correlations=’LR’, uvDists=’>125kl’ \  
      times=’1989/06/27/03:31:40’ );  

__________________________________________________________________


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