Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1488 |
|
Package | general | |
Module | ms | |
Tool | ms |
wantedpol | The polarizations wanted | ||
Allowed: | Vector of strings | ||
Default: | no default |
You specify the polarizations using a string vector. Allowable strings are include I, Q, U, V, RR, RL, LR, LL, XX, YY, XY, YX. These string must be specified in upper case. If the polarizations match those present in the measurement set they will be selected directly, otherwise all polarizations are read and then a conversion step is done. If the conversion cannot be done then an error will be produced when you try to access the data.
This function return T if the selection was successful, and F if not.
You need to call selectinit before calling this function. If you haven't then selectinit will be called for you with default arguments.
include 'ms.g' myms:=ms("3C273XC1.ms"); myms.selectinit(datadescid=1); myms.selectpolarization("I V"); rec := myms.getdata("data");This example selects all the data from the measurement set where the value in the
DATA_DESC_ID
column is zero. This
corresponds to a particular spectral window and polarization
setup. It then selects the I and V polarizations and when the
getdata function is called the conversion from RR, LL, LR, RL
polarizations to I and V occurs.