Next: Field Selection
Up: MeasurementSet Selection Syntax
Previous: Time selection
Subsections
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.
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.
- VLA:N1 corresponds to antenna named "VLA:N1".
- 1,2,3 corresponds to antennas named "1", "2" and
"3".
- 1
3 corresponds to antennas named "1", "2" and
"3".
- VLA:N* corresponds to all antennas who's name starts with
"VLA:N".
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).
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. |
|
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.,
- baseline=!15 excludes all baselines with the antenna named "15"
- baseline=!1
10 excludes all baselines involving
the antennas named between "1" and "10"
- baseline=!1,3,5,7,9 excludes all baselines involving
antennas named "1", "3", "5", "7" and "9"
- baseline=1
10;!5 selects all baselines involving
antennas named between "1" and "10" except those
involving antenna named "5".
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.
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.
- baseline=1,2,3 selects baseline between antennas 1, 2 and
3 and all other antennas.
- baseline=1,2,3& selects baseline between antennas 1,2 and
3 only.
- baseline=1,2,3 & 4,5,6 selects baselines between antennas
1,2,3 and 4,5,6.
Following are more examples of baseline specification using ranges and
names:
- baseline=1
3 same as baseline=1,2,3
- baseline=1
3& same as baseline=1,2,3&
- baseline=1
3 & 4
5 same as baseline= 1,2,3&4,5,6
- baseline=VLA:N* & VLA:E* selects all baselines between
antennas with names starting with "VLA:N" and "VLA:E".
- baseline=21;!15 selects baselines between antenna named "21" and all other available antennas, except antenna
named "15". I.e, baseline "21-15" (or its conjugate, if
present in the database) is excluded.
The full baseline selection expression is any of the examples shown
above or a semi-colon-separated list of baseline specifications. E.g.
- baseline=1
3& ; 4
5&10
15 ; VLA:N* &
VLA:E*
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: Field Selection
Up: MeasurementSet Selection Syntax
Previous: Time selection
Sanjay Bhatnagar
2011-02-23