Subsets can be extracted from a catalogue according to some criteria using either the catalogue
browsers xcatview
(see Section 11) and catview
(see Section 12) or using application catselect
.
Whereas the selection options in the catalogue browsers are oriented towards the interactive
exploration and display of catalogues, catselect
is oriented towards creating ‘one-off’ selections from
a catalogue and saving them as a new catalogue. Also, catselect
contains options for types of
selections which are not available in the catalogue browsers.
The remainder of this section describes catselect
. In addition to saving the selected objects as a new
catalogue, catselect
provides an option to save the rejected objects, which did not meet whatever
criteria was specified, to a second catalogue. The types of selection available in catselect
are listed in
Table 7 and described in Section 16.2.
Type of selection | Option | Browser? |
Arbitrary expression | E | |
Range within a sorted column | R | |
Rows inside a rectangle | A | () |
Rows inside a circle | C | () |
Rows inside a polygon | P | |
Every th row | N | |
The ‘Option’ column lists the response to prompt SETYP
which corresponds to the
type of selection.
The ‘Browser?’ column indicates whether the type of selection is
available in the catalogue browsers xcatview
and catview
. A bullet
(‘’)
indicates that the type of selection is available. A bullet in parenthesis
(‘()’)
indicates that the type of selection is available in the browsers by entering the
appropriate arbitrary expression.
To run catselect
simply type:
The amount of textual information written to the output catalogue is controlled using the command line mechanism described in Section 10.1. You must answer a series of prompts in order to generate a catalogue containing the required selection. Some of these prompts differ depending on the type of selection required, but the first few are always the same. These first few prompts are listed below together with a corresponding explanation. In this list the prompts are identified by the corresponding ADAM parameter name, which appears at the start of the prompt line.
CATIN
CATOUT
catselect
will automatically create the output
catalogue in toto.
REJCAT
TRUE
FALSE
CATREJ
TRUE
’ to the
REJCAT
prompt. A catalogue with the specified name must not already exist. catselect
will
automatically create the output catalogue in toto.
SELTYP
E
R
A
C
P
N
H
See Section 16.2 for a description of the options. You will be re-prompted until a valid option is
given. Similarly, you will be reprompted after giving option ‘H
’.
The remaining prompts vary, depending on the type of selection which is being performed. They are discussed with the corresponding type of selection in Section 16.2.
This section describes the different types of selections available in catselect
. The various types of
selection are listed in Table 7.
SELTYP
option E
). SELTYP
option R
). 3:00:00 | (hours) | |
+45:00:00 | (degrees) | |
0.78539816 | (radians) | |
SELTYP
option A
). SELTYP
option C
). You will first be prompted for the names of the column containing the Right Ascension and then the column containing the Declination. Next you will be prompted for the Right Ascension of the central position followed by the central Declination. Finally you will be prompted for the radius of the circle.
The Right Ascension should be entered as a sexagesimal value in hours, the Declination as a sexagesimal value in degrees and the radius as a sexagesimal value in minutes of arc. For example, to specify a search to find objects within twenty-three minutes of arc of Right Ascension and Declination the values entered would be:
Central Right Ascension: | 10:30:00 |
Central Declination: | 35:00:00 |
Radius: | 23:00 |
If a search radius of twenty-three seconds of arc was required the value entered would be ‘0:23
’
(note the leading zero and colon). A decimal point and fractional seconds of arc can be entered if
required. For example, twenty-three and a half seconds of arc would be entered as
‘0:23.5
’.
SELTYP
option P
). The coordinates of the polygon corners are read from a CURSA catalogue which you should
prepare before running catselect
. This polygon catalogue is probably most easily prepared
using the STL format (see Appendix C); then it can simply be typed in with a text editor. All that
the catalogue needs to contain are the two columns containing the coordinates of the polygon
corners. The names of these columns are not fixed; catselect
prompts for them.
Figure 2 shows an example STL format polygon catalogue. This example is available as
file:
Once the ‘polygonal area’ option has been selected you will be prompted to enter the names of the columns
holding the
and
coordinates in which the polygon is defined in the input catalogue, the name
of the polygon catalogue and finally the names of the columns holding the
and
coordinates in the polygon catalogue (X
and Y
in Figure 2).
SELTYP
option N
). xcatview
(see
Section 11) or catview
(see Section 12) in the case where the original catalogue was too large for
interactive analysis.