It is common to wish to process only a subset of the possible visibility data. In MIRIAD , the visibility data to be selected are usually specified by one parameter -- the select keyword. This parameter is constructed from a number of subcommands, each subcommand selecting or rejecting visibility data which satisfies some condition. The subcommands, which can be abbreviated to uniqueness, are as follows:
The time is composed of a date and `time-of-day' portions, either of which can be omitted (but not both at the same time!). When the date is omitted, then the selection matches data, for the given time-of-day, regardless of the day. This is most useful for files containing only a single day's data. When the time-of-day is omitted, then 00:00 is assumed.
The times t1 and t2 are given in the form:
yymmmdd.fff
or
yymmmdd:hh:mm:ss.s
Here yy is the year, mmm are the first three letters of the month's name, dd is the day of the month, fff is a fraction of a day, hh is the hour (24-hour clock), mm are the minutes, and ss.s are seconds and fractions of a second. The `time-of-day' portion can be abbreviated. For example, the seconds part can be omitted. Indeed (provided a date is given) the `time-of-day' portion can be totally omitted if desired.
For example:
90jan12:12:30is 12:30 on 12 January, 1990, whereas
78jun03.5is midday on 3 June, 1978.
To give some examples:
select=time(91jan05:10:50,91jan05:17:20)will select data observed on 5th January, 1991, between 10:50 UT to 17:20 UT.
The form where no date is given:
select=time(10:50,17:20)will select data observed on any day between 10:50 and 17:20.
To give an example where only one time is given, the following
select=time(91jan03)will select all data observed on 3rd January, 1991. This form is only useful for a file containing several days of data.
select=antennae(1,3)To select all visibilities using baselines with antennas 1 and 2, or 3 and 2, use
select=antennae(1,3)(2)
radius is in the range uvmin to uvmax. If only one value is given, then uvmin is taken as zero. The units of uvmin and uvmax are kilowavelengths.
Each subcommand can
be prefixed with a plus or minus sign (+
or
-
). A plus sign means to select the data given by the following
subcommand, whereas a minus sign means to discard the data. If neither
a plus nor a minus sign is present, a plus sign is assumed. For example
select=uvrange(0,10)means to select all visibilities between 0 and 10 kilowavelengths, whereas
select=-uvrange(0,10)selects all data except visibilities between 0 and 10 kilowavelengths.
Several subcommands can be combined on the same line, separated by commas. When combining several subcommands of different types, the visibility must be selected by all the subcommands to be accepted (a logical AND). When combining several subcommands of the same type, then the visibility is accepted if it is selected after sequentially examining each of the subcommands (a logical OR). For example:
select=uvrange(0,10),uvrange(20,30)selects data with a u-v radius in the intervals 0 to 10 kilowavelengths as well as 20 to 30 kilowavelengths. The following uses a `select then discard' approach to selecting the same u-v ranges as above:
select=uvrange(0,30),-uvrange(10,20)The following selects the same u-v ranges, but only for the baseline between antennas 1 and 3.
select=uvrange(0,10),uvrange(20,30),antennae(1)(3)The following selects all baselines, with the exception of 1-2, 5-7 and 6-7:
select=-antennae(1)(2),-antennae(5,6)(7)
Another way of combining subcommands, is with the or subcommand. This allows you to OR together two `clauses' of selection commands. For example, to select spectral windows 1 and 2 for the times 0:00 to 1:00, and spectral windows 4 and 5 for times 2:00 to 3:00, use:
select=time(0:00,1:00),window(1,2),or time(2:00,3:00),window(4,5)
By combining the various subcommands and the or subcommand, quite complex
selection criteria can be developed. For complex selections, an
@
file (as described in Section 2.5) may be preferred.
For example, consider a file, select.data, containing the text:
time(1:00,2:00),window(1,2),or time(2:00,3:00),window(1,2),-uvrange(50,100),-antennae(1)(3),or time(3:00,4:00),window(1,2,3,4)Then
select=@select.datawill use windows 1 and 2 for time 1:00 to 2:00, and windows 1, 2, 3 and 4 for times 3:00 to 4:00. For time 2:00 to 3:00, it uses windows 1 and 2, but omits data for baseline 1-3 which has a u-v range of 50 to 100 kilowavelengths.
There are a few limitations on the use of amplitude, polarization and window selection. Some of these limitations are mentioned in following sections, whereas others are not. Few of these limitations affect normal practice, and the selection software will inform you if there is an problem.