Next: Input Formats
Up: COCO Conversion of Celestial Coordinates
Previous: Introduction
To run COCO interactively, on either VAX/VMS platforms or
the Sun SPARCstation and DECstation Unix-based platforms, simply type:
COCO
The program then accepts commands and outputs appropriate replies.
The primary commands are as follows:
Command Function
I p specify input coordinate system (p defined below)
O p specify output coordinate system ( " )
<coords> perform conversion (or = to repeat last coordinates)
E exit
where the parameter p, specifying the coordinate system, is
as follows:
4 [eq] [ep] equatorial, FK4 (barycentric)
B [eq] [ep] like FK4 but without E-terms (barycentric)
5 [eq] [ep] equatorial, FK5 (barycentric)
A ep equatorial, geocentric apparent
E ep ecliptic (barycentric)
G [ep] galactic (barycentric)
eq = equinox, e.g. 1950 (optional B or J prefix)
ep = epoch, e.g. 1984.53 or 1983 2 26.4
Coordinates type 4 and B default to equinox B1950. Coordinates type 5 default
to equinox J2000. In all three of these coordinate systems the epoch defaults
to the equinox. For coordinate type G the epoch defaults to B1950.
The following commands are also available:
Command Function
F specify RA mode: x = H for hours, D for degrees
S display current settings
? show format of <coords>
/<file> switch to secondary input file <file>
H list the commands
R x select report resolution: x = H, M or L
(high,medium,low)
Input is free-format, with spaces separating the fields (comma is
also acceptable as a field separator within coordinates).
Both upper and lower case letters are acceptable.
Blank lines can be input freely, and a comment can be appended to
any line by preceding it with an asterisk.
The
format command, F, selects either hours or degrees as
the units for
, affecting both the input formats which are
accepted and the format of the outputs. The command ``F D"
selects degrees as the
unit, limits the input formats
to a single number in degrees for both
and
, and
causes the output formats to be a single number in degrees
for both
and
. The command ``F H" switches to the
hours format, enabling a variety of sexagesimal input
formats as well as plain hours and degrees, and causing
the output formats to be h,m,s,d,
,
.
On startup, COCO is set to input FK4 B1950 and output
FK5 J2000, with
in hours and medium report resolution.
In a typical COCO run, the first step would be to specify the
input and output coordinate systems by means of the I and O
commands, and then to enter the coordinates to be
transformed.
For example, suppose that we wish to convert
a QSO position measured from a plate taken in mid-1976 and
using reference stars from the B1950.0 SAO catalogue to coordinates
in the new J2000.0 system.
The following commands could be used:
I 4 1950 1976.5 * input system is FK4 B1950; epoch is 1976.5
O 5 * output system is FK5 J2000
12 43 25.3 +32 15 29 * measured 1950 position; no proper motion
Some additional operating modes are described in a later section.
Notes:
- The results output by COCO are believed to be of more
than adequate accuracy for all practical purposes at
present and are far more precise than any
available star coordinates.
Geocentric apparent place
is the least accurate form,
and is limited (in the worst case) to about 0.3 milliarcsec
by the model for Earth velocity and position that is
used.
The more straightforward conversions are, as
implementations of the accepted algorithms, several
orders of magnitude better than this figure.
It should
be noted, however, that there is a lingering debate
about the precise formulation of the conversion between
FK4 data and the new FK5 system. COCO uses the algorithm
published in the 1985 Astronomical Almanac.
The differences are far too small to pose problems for non-specialists.
- The three report resolutions provided are referred
to simply as L (low), M (medium),
and H (high).
At resolutions ``L" and ``M", all the
figures output are trustworthy.
Resolution ``H" is provided
mainly to allow comparison with other predictions and to
decrease rounding errors where differences are taken.
- COCO is for use only with sources well outside the solar
system.
Where appropriate, stellar parallax and aberration
are allowed for, but the corrections for gravitational
deflection assume that the source is distant.
In particular, COCO is not suitable for predicting apparent places
for the Sun.
- COCO is not intended for the conversion of catalogue data,
and reports positions only; updated proper motions etc. are not reported.
Full conversion of catalogue data is best done by writing
ad hoc programs, using the subprograms in the SLALIB
library (see SUN/67).
- COCO accepts both commands and data from up to two
sources, called the primary and secondary input files.
To switch to a secondary input file called STARS.DAT, for
example, would require the command /STARS.DAT.
(The switch command itself is available only from the primary input file.)
When an E command, or end of file, is detected during input from
a secondary file, control reverts to the primary file.
The same secondary input file may be processed several times in
one COCO run, as in the example of producing the apparent places of
a fixed list of stars for a series of dates - the secondary file
could be the list of stars and the primary file a series of pairs of
commands, each pair specifying a new epoch and then switching again
to the secondary file to process all the stars anew.
- All of COCO's coordinate systems except for geocentric apparent
are barycentric, i.e. unaffected by parallax.
Mean places which include displacements
due to parallax can be handled by working
via the intermediary of geocentric
apparent place. For example, the following procedure takes a J2000
barycentric place and adds the (small) effect of parallax for a
given date:
- Set the report resolution to high.
- Set the input system to J2000.
- Set the output system to geocentric apparent place for
the required date.
- Enter the mean place with proper motions and parallax (and radial
velocity if available).
- Note the apparent place.
- Set the input system to geocentric apparent, specifying the
same date as in step (c).
- Set the output system to J2000.
- Type in the apparent place from step (e). The result will be close
to the position entered in step (d), but with the effects of parallax
added.
Next: Input Formats
Up: COCO Conversion of Celestial Coordinates
Previous: Introduction
COCO --- Conversion of Celestial Coordinates
Starlink User Note 56
P T Wallace
21st June 1995
E-mail:ussc@star.rl.ac.uk
Copyright © 2010 Science and Technology Facilities Council