next up previous
Next: Polarization Selection Up: MeasurementSet Selection Syntax Previous: UV Distance Selection

Subsections

Frequency Selection

Frequency selection expression consists of two specifications separated by colon (':') in the form:

      SPWSPEC[:CHANSPEC]
where SPW is the spectral window specification and CHANSPEC is the optional frequency specification for selection within the selected spectral windows. When channel specification is omitted, all channels of the selected SPW are selected.

SPWSPEC and CHANSPEC allow use of semi-colon separated lists. As a result, list of SPWSPEC can be given in two ways: (1) a semi-colon separated list, (2) coma separated list. This allows simple selections to remain simple and more complex selections consistent with the syntax for CHANSPEC list.

Spectral Window Specification Syntax

Spectral windows (SPW) specification can be a single ID or a list of spectral window integer IDs, a spectral window name (as a literal string (for exact match)/regular expression/pattern) or a reference frequency value (value with a unit). A single frequency specification is used for exact match with the REF_FREQUENCY column of the SPECTRAL_WINDOW sub-table. A range of frequencies are used to select all SPWs which are within the given range. The allowed units are Hz, KHz, MHz, GHz or THz.

SPWs can also be selected via a boolean expression for integer IDs.

E.g.

Channel Selection Syntax

Channel specification1 (referred to as CHANSPEC in the following description) is a START,STOP,STEP tuple corresponding to the first frequency channel, the last frequency channel and the step size to increment from the first to the last channel. The START and STOP part of the tuple can be range specification for the range [START, STOP] followed by an optional STEP size.

START and STOP part of the tuple can be specified as a single integer or physical quantity or as a range of integers or physical quantities. A single integer is treated as a channel index and the tuple corresponds to [ID,ID,1]. A single physical quantity is matched with the exact frequency value of the channels and tuple of matched channel index is constructed as [ID,ID,1]. A range of integers given as N0$ \sim$ N1 is used to construct a tuple [N0,N1,1]. Similarly for a range of physical quantities.

If a START,STOP part of the tuple specification is followed by "^STEP", the STEP is used as the third value of the tuple. STEP specification is a single integer or physical quantity. E.g. 0$ \sim$ 10^2 is converted to a START,STOP,STEP tuple [0,10,2].

A channel selection expression is a semi-colon separated list of channel specifications. E.g.

Frequency Selection Syntax

The specifications for SPW and channels can be combined to form a fully qualified frequency selection expression in the form SPWSPEC[:CHANSPEC] (square brackets indicate that :CHANSPEC is optional). A frequency selection expression is a comma-separated list of SPWSPEC[:CHANSPEC] specifications. Channel selections apply to all SPWs selected by the SPWSPEC on the left of ':'. E.g.

Notes

  1. For channel specifications of the type N1$ \sim$ N2:c0;c1;c2;c3MHz the list of channel selection is applied to all SPWs in the range [N0, N1]. c3 is converted from physical units to channel index by using the channel width from SPW N1. Is it better to use the min. chan. among the selected SPWs?

  2. If channel range is out of bounds, it will be brought within bounds per SPW. If the lower limit of a range is greater than the available outer limit, exception is generated. If the lower limit is less than zero, it is set to zero. If upper limit is greater than the available outer limit, it is set to the available outer limit.

    If a single channel specification is greater than the available outer limit, an exception is thrown. If it is less than zero, it is set to zero.

  3. For ranges of physical values, it is assumed that the spectral window sub-table's CHAN_FREQ column has ordered list of channel frequencies.


next up previous
Next: Polarization Selection Up: MeasurementSet Selection Syntax Previous: UV Distance Selection
Sanjay Bhatnagar 2011-02-23