next up previous 222
Next: Converting between celestial coordinate systems
Up: Selecting subsets from a catalogue
Previous: Running catselect


Types of selections

This section describes the different types of selections available in catselect. The various types of selection are listed in Table [*].

Arbitrary expression
(SELTYP option E).
Select the rows which satisfy an arbitrary mathematical expression. You will be prompted to enter the required expression. Expressions are described in Appendix [*]. Occasionally you may need to enter an expression which is longer than a single line. Such long expressions can be entered using the continuation line mechanism described in Section [*].

Range within a sorted column
(SELTYP option R).
Select rows within a given range of a sorted column. Range selections can be created essentially instantaneously, irrespective of the size of the catalogue. However they can only be created on sorted columns. You will be prompted for the name of the required column and the minimum and maximum values to be included in the range. If the column contains a celestial coordinate in a format that CURSA can recognise (see Appendix [*]) then the minimum and maximum values can optionally be entered as sexagesimal values in hours or degrees. The usual rules for interpreting sexagesimal values in expressions are followed. For example any of the following three values could be entered and all correspond to the same coordinate:

3:00:00     (hours)
+45:00:00     (degrees)
0.78539816     (radians)

Rectangular area
(SELTYP option A).
Select the rows that lie within a given rectangular area. You will be prompted for the name of the column defining the $x$ axis of the area and then the minimum and maximum $x$ coordinates of the area. Corresponding prompts are then issued for the $y$ axis.

Circular area
(SELTYP option C).
This option, sometimes called a `cone search' (because it finds all the objects in a conical volume), finds all the rows within a specified radius of a given point. It is usually used to find all the rows that lie within a specified angular distance from a given point on the celestial sphere.

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 $10^{\rm h} 30^{\rm m} 00\mbox{$^{\rm s}\!\!.$}0$ and Declination $+35^{\circ} 20\raisebox{-0.5ex}{$^{'}$} 00$ $^{'\hspace{-0.1em}'}$ . $0$ 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'.

Polygonal area
(SELTYP option P).
This option selects all the rows which lie inside a polygon which you specify. The polygon can be of an arbitrary shape and have an arbitrary number of corners. This option might be used to select objects in an irregularly shaped region of sky or to find objects with unusual properties in some two-dimensional space. It could, for example, be used to isolate stars in the red giant branch of a Hertzsprung-Russell diagram.

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 [*]); 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 [*] shows an example STL format polygon catalogue. This example is available as file:

/star/share/cursa/polygon.TXT

Figure: Example STL format catalogue of polygon corners
\begin{figure}\par
\begin{verbatim}!+
! Example STL format catalogue of polygo...
....0 122.0
159.0 143.0
174.0 76.0
105.0 68.0\end{verbatim}
\par\par
\end{figure}

Once the `polygonal area' option has been selected you will be prompted to enter the names of the columns holding the $x$ and $y$ 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 $x$ and $y$ coordinates in the polygon catalogue (X and Y in Figure [*]).

Every nth entry
(SELTYP option N).
This option selects every nth row from the input catalogue; you are prompted for the value of n. This simple option is useful for producing a smaller, but representative, sample from a larger catalogue. Such a sample might then be investigated interactively using xcatview (see Section [*]) or catview (see Section [*]) in the case where the original catalogue was too large for interactive analysis.



next up previous 222
Next: Converting between celestial coordinate systems
Up: Selecting subsets from a catalogue
Previous: Running catselect

CURSA Catalogue and Table Manipulation Applications
Starlink User Note 190
A.C. Davenhall
4th November 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils