Astronomical Applications Department, U.S. Naval Observatory novas c 2 doc Page 23
23
4.10
ASTRO_PLANET
short int astro_planet (double tjd, body *ss_object, body *earth,
double *ra, double *dec, double *dis)
PURPOSE:
Computes the astrometric place of a planet or other solar system
body.
INPUT
ARGUMENTS:
tjd (double)
TT (or TDT) Julian date for calculation.
*ss_object (struct body)
Pointer to structure containing the body designation for the
solar system body (defined in novas.h).
*earth (struct body)
Pointer to structure containing the body designation for the
Earth (defined in novas.h).
OUTPUT
ARGUMENTS:
*ra (double)
Astrometric right ascension in hours, referred to mean equator
and equinox of J2000.
*dec (double)
Astrometric declination in degrees, referred to mean equator
and equinox of J2000.
*dis (double)
True distance from Earth to planet in AU.
RETURNED
VALUE:
(short int)
0...Everything OK.
>0...Error code from function 'solarsystem'.
Discussion:
See the discussion for function app_planet. Function astro_planet is identical to
app_planet in input arguments and use. Here, however, the output arguments provide the
astrometric place of the planet.