Astronomical Applications Department, U.S. Naval Observatory novas c 2 doc Page 34
34
by the value of
type
in a data structure of type
cel_obj
. Currently, two
case
s within
the
switch
are defined :
type
= 0 (major bodies via solarsystem) and
type
= 1 (minor
planets via readeph). To support another ephemeris, the user simply defines a new value
of
type
and adds another
case
block containing code that accesses the new ephemeris.
Additional information concerning function solarsystem is provided in the following