next up previous
Next: Field Selection Up: MeasurementSet Selection Syntax Previous: Time selection

Subsections

Antenna/Baseline Selection

This expression is used to perform baseline based selections. Baseline can be specified as a pair of antenna specifications. Since antenna specification can itself be a list of antennas, the expression allows a rich selection syntax which is simple for simple selections.

ANT in the description below is a comma-separated list of antenna specifications. A baseline specification is an single ANT, ANT followed by an operator or a pair of ANT separated by an operator. A baseline expression is single baseline specification or a semi-colon separated list of baseline specifications.

Syntax

Antenna specification

An ANT can be given as a single string (literal/pattern/regular expression), single integer ID, a range of integer IDs or a comma separated list of integers. For VLA-specific reasons (see Section 3.2), only for antenna specifications, integers are first converted to strings and matched against the antenna names. E.g.

Antenna specifications are first matched against the antenna names (the NAME column of the ANTENNA sub-table of the MS). If no match is found, the given specification is matched against the station name (the STATION column of the ANTENNA sub-table of the MS).

Baseline specification

A baseline specification consists of an ANT, an ANT followed by an operator or a pair of antenna specifications separated by an operator. Operator can be one, two or three ampersands ('&') - '&' selects only cross-correlation baselines, '&&' selection cross- and auto-correlation baselines and '&&&' selection only auto-correlation baselines. Formally, baseline specification is of the form [!]ANT[$ <$ OP$ >$ [ANT]] (where the parts in square brackets are optional and $ <$ OP$ >$ can be '&', '&&' or '&&&').

Possible forms of baseline specifications are tabulated in Table 1.


Table 1: Baseline specification syntax: ANT, ANT1 and ANT2 represent a comma-separated list of antennas.
Specification Meaning
ANT Select only cross-correlation baselines between all the
  antennas in ANT and all other available antennas
ANT& Select only cross-correlation baselines between antennas
  in ANT only
ANT1&ANT2 Select only cross-correlation baselines between
  antennas in ANT1 and ANT2
ANT&& Select cross- and auto-correlation baselines
  between all the antennas in ANT only
ANT&&* Select cross- and auto-correlation baselines
  between all the antennas in ANT and all other
  available antennas
ANT1&&ANT2 Select cross- and auto-correlation baselines
  between antennas in ANT1 and ANT2
ANT&&& Select only auto-correlation baselines for
  antennas in ANT
!ANT Excludes all baselines involving antennas in ANT.
  ANT can be any of the above expressions
ANT1 ; !ANT2 ANT1 and ANT2 can be any of the above expressions.
  This selects only cross-correlation baselines
  between all the antennas in ANT1 and all
  other available antennas except those involving
  antennas in ANT2.


Baseline negation operator

The negation operator '!' can be used to exclude a baseline specification from the final selection. Note that this is a baseline negation operator and not an antenna negation operator. The negation operator applies only to the baseline specification immediately following it. E.g.,

Note that the negation operator cannot be applied to individual members of the antenna specification/antenna list. E.g. the expression "1,2,!5,8" is syntactically incorrect.

Examples

In the most common usage, an atomic ANT selects all baselines containing all the antennas in ANT. ANT& selects only baselines between the list of antennas in the antenna specification. ANT1&ANT2 selects baselines between antennas in ANT1 and ANT2 only. E.g.

Following are more examples of baseline specification using ranges and names:

The full baseline selection expression is any of the examples shown above or a semi-colon-separated list of baseline specifications. E.g.

with each elements of the semi-colon separated list being interpreted as explained above.


Integers-as-names VLA naming convention

Antenna naming convention for VLA is such that the antenna names are actually valid integers converted to strings. While we feel that this is indeed a bad idea and it will be best to translate the VLA antenna names to something like VLA1, VLA2 in the CASA VLA filler (or something that does reflect that its a name and not get confused with integer indexes), for now, to accommodate the VLA tradition, the following logic is used:

Just for antenna selection, a user supplied integer (or integer list) is converted to a string and matched against the antenna name. If that fails, the normal logic of using an integer as an integer and matching it with antenna index is done.
Hence if the antenna with ID 17 is named "21", the string
                               "21",VLA22
will expand into an antenna ID list of 17,22 (assuming that the antenna named VLA22 has ID 22).

If we conclude that this style of antenna selection is indeed the way we wish to go, users should be aware that the antenna selection will behave differently for telescopes other than VLA. Assuming that antenna with names "21","17", and "11" have IDs 1,2,3 for VLA, a selection string "21,17,11" will select antenna with IDs 1,2,3. For other instruments where this is not the naming convention, the same selection string ("21,17,11") will select antennas with ID 21, 17, and 11.


next up previous
Next: Field Selection Up: MeasurementSet Selection Syntax Previous: Time selection
Sanjay Bhatnagar 2011-02-23