next up previous 222
Next: Parameters
Up: Storing sexagesimal angles
Previous: Simple sexagesimal angles

Complex sexagesimal angles

The TBLFMT item has additional options for reading more complex sexagesimal angles from STL catalogues. These options cover most of the formats used in practice to represent angles in astronomical catalogues held as text files. They should only be used in fixed-format STLs; if they are used in free-format STLs the results are unpredictable. For complex sexagesimal angles the TBLFMT item has the form:

TBLFMT=units{element_descriptors}

units is the units of the angle, as for simple sexagesimal angles. Again the permitted values are as listed in Table [*]. element_descriptors is a series of Fortran-like descriptors for the individual components of the sexagesimal angle. A sexagesimal angle is allowed to comprise up to four components:

The descriptors used to read these components are very similar to the descriptors used in Fortran FORMAT statements. In the following $n$ is the total number of characters occupied by the item and $m$ the number of decimal places. Both $n$ and $m$ are positive integers. The following rules apply.

You simply assemble an appropriate set of descriptors to describe a given angular format. The only real restriction is that the quotient and any sexagesimal subdivisions must occur in order of decreasing size (that is, quotient first, least significant subdivision last). However, it is very unusual for sexagesimal angles to be tabulated in any other order. The following additional points apply to the optional separate sign.

Figure [*] shows an example of an STL format catalogue containing several columns of complex sexagesimal angles. This catalogue is available as file:

/star/share/cursa/angles.TXT

Figure: An example STL format catalogue containing columns of complex sexagesimal angles
\begin{figure}\par
\begin{verbatim}!+
! STL catalogue showing examples of comp...
... 60.0 <null> 55.x\end{verbatim}
\par
\begin{quote}\end{quote}\par
\end{figure}

The interpretation of the TBLFMT items for these angles is quite straightforward. For example, column ANGLE1 starts in the third character of each record and has units of degrees. It has a separate sign as its first character. The quotient degrees, minutes and seconds are all two-character INTEGER values and are separated by one space (or rather by any single character).


next up previous 222
Next: Parameters
Up: Storing sexagesimal angles
Previous: Simple sexagesimal angles

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