We also support conversion between hh:mm:ss [+-]dd:mm:ss format and floating point degrees for plain, ANSI C based applications.
The following structs, defined in worldCoords.h , represent the world coordinate values:
typedef struct { int hours; int min; double sec; double val; WC_HMS; typedef struct { WC_HMS ra, dec; } WC;
A number of routines are defined to operate on the WC struct, so that you can specify the coordinates of an object as doubles in degrees or in hh:mm:ss [+-]dd:mm:ss format:
initialize world coords from char strings containing RA and DEC |
|
See worldCoords(3) for more details.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory