next up previous 225
Next: Vector columns
Up: Carrying on
Previous: Carrying on

Celestial coordinates in catalogues

Most astronomical catalogues contain columns of celestial coordinates of some sort: usually Right Ascension and Declination for some equinox and epoch, or perhaps Galactic or ecliptic coordinates. The storage, manipulation and presentation for display of celestial coordinates in the computer-readable version of astronomical catalogues is something of a vexed topic which has caused a deal of confusion and difficulty, much of it, in principle, unnecessary. Celestial coordinates are angles. The basic conundrum in storing and processing them is as follows:

For preexisting catalogues the format of the celestial coordinates will already be fixed and they must simply be used in whatever way is possible. For example, many catalogues contain the hours, or degrees, minutes and seconds which comprise a coordinate as separate columns; a form which is singularly inconvenient for further processing. However, CAT has some special facilities for processing and displaying angles which conveniently and automatically provide for:

This facility works as follows:

In order to use this facility CAT must know that the column contains an angle and the units (hours or degrees) and format to use when formatting the angle for display. The prescription for creating a column of angles in a CAT catalogue is as follows.

  1. Create the column with data type DOUBLE PRECISION.

  2. The UNITS attribute should start with the string RADIANS to indicate that the column contains an angle in radians and this should be followed by a specifier enclosed in curly brackets `{}' indicating how it is to be formatted for display. For example:

    RADIANS{HOURS}
    if it is to be displayed in hours,

    RADIANS{DEGREES}
    if it is to be displayed in degrees.

    Specifying `HOURS' will cause the angle to be displayed in hours, minutes and seconds, with the seconds displayed to one place of decimals; `DEGREES' will cause the angle to be displayed in degrees, minutes and seconds, with the seconds displayed as whole numbers6.

  3. When writing the table of values for the catalogue, express the angles in radians as DOUBLE PRECISION variables and write them to the catalogue using CAT_PUT0D.

An example program is available which illustrates the creation of columns containing angular celestial coordinates. It creates a catalogue containing (fake) equatorial coordinates and B magnitudes for a set of stars. It is called EXAMPLE_ANGLES and the source code is available in file:

/star/share/cat/example_angles.f

The overall structure is very similar to the previous example of writing a catalogue,
EXAMPLE_WRITE, but note the way that the three points outlined above are followed in order to create the angular columns.



next up previous 225
Next: Vector columns
Up: Carrying on
Previous: Carrying on

CAT [1ex
Starlink User Note 181
A.C. Davenhall
4th April 2001
E-mail:ussc@star.rl.ac.uk

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