This export package allows you to create and test binary time ephemerides
from the ascii data and test files that are in this directory.  The required
compiled subroutines are stored in a linux/unix library and are ordinarily
accessed by calls to time_const and time_pleph (or time_dpleph) similar to
the way the JPL ephemeris is used by calling const, pleph (or dpleph).
Similar to the way JPLEPH is treated for the JPL ephemerides, TIMEEPH should
be a logical link to the appropriate binary time ephemeris file you create
in this directory.  N.B. always do this by pointing to a specific file name
and not TIMEEPH in this directory.  The *.csh script files in this directory
handle this correctly.  TIMEEPH is changed to point to whatever file is
appropriate.  However, be sure not to run more than one script at once
since the TIMEEPH re-assignment will interfere between scripts.

INSTRUCTIONS

I. Choose which time ephemerides to retrieve

(1) time_asc.200 covers years from 1600 to 2169 based on de200 JPL ephemeris.
(2) time_asc_short.200 is same as (1) except short time span from 1965 to
2015.
(3) time_asc.405 covers years from 1600 to 2200 based on de405 JPL ephemeris.
(4) time_asc_short.405 is same as (3) except short time span from 1965 to
2015.
(5) time_asc.406 covers years from -3000 to 3000 based on de406 JPL ephemeris.
(6) time_asc_short.406 is same as (5) except short time span from 1965 to
2015.

II. Retrieve all other files including this one.

III.  Compilation and execution of code

Systems which are not Linux or Unix: Not ported yet (if ever).

Unix systems: edit the Makefile to put in appropriate fortran compilation
commands (usually f77) and compilation flags (usually nothing or -O2), and
ranlib command (either ranlib or echo [if your system does not require or
have ranlib]) then proceed as in Linux systems below.

Linux systems:

The Makefile is fairly well documented.

"make" or make allprog" makes the executable code and library you will need
for the time ephemeris export package.

"make all200" makes all the binary ephemeris files and tests the results for
te200.  You should check the resulting time_test.result.200 to make sure
that on your computer there are no intolerable differences with the
g77/linux test results generated here.

"make all405" makes all the binary ephemeris files and tests the results for
te405.  You should check the resulting time_test.result.405 to make sure
that on your computer there are no intolerable differences with the
g77/linux test results generated here.

"make all406" makes all the binary ephemeris files and tests the results for
te406.  You should check the resulting time_test.result.406 to make sure
that on your computer there are no intolerable differences with the
g77/linux test results generated here.

N.B. the Makefile calls csh script files (xxx.csh) which do the work.
Often these script files fiddle with the logical link TIMEEPH which
points to the actual binary file being created or accessed so
don't run more than one of these scripts at a time, and don't fiddle
with the logical link while one of these scripts is executing.

***END OF INSTRUCTIONS***

Notes:

The time ephemeris depends only on quantities available from the JPL
ephemeris, but substantial numerical quadrature (8 hours cpu on a linux PC
pentium-133) is required to obtain it. Ideally a time ephemeris should be
calculated just after a new JPL ephemeris is calculated and the Chebyshev
coefficients associated with the time ephemeris and the LC constant made
part of the JPL export ephemeris. However since two groups are involved
(Standish et al for the JPL ephemeris and Irwin & Fukushima for the time
ephemeris), and some revision of the JPL export software would be necessary,
we will keep the time ephemeris separate for now.

asc_short_main.f is my own programme for creating short ascii ephemerides
from the long version (1600-2200 for te405).  All other fortran routines
without the "time_" prefix have been copied directly from the JPL ephemeris
routines and have only been included here as a convenience to make this
package more self-contained.  Ordinarily, these routines would be included
in a library with the rest of the JPL routines.

The fortran routines in this directory with a "time_" prefix are a
substantial modification (by Alan W. Irwin, irwin@uvastro.phys.uvic.ca) of
the equivalent JPL programmes (without the "time_" prefix).  The
modifications have been made so that these routines can be used for the
Irwin & Fukushima time ephemeris.  A typical use is alternating calls to
time_dpleph (to obtain the JPL independent variable t_eph and the v_E/c
vector values required for time transformations) and then calls to
dpleph to obtain JPL coordinates and velocities of solar system objects.
Thus, care has been used to insure these time-ephemeris versions of the
routines do not clash in any way with the JPL ephemeris routines.  However,
if there are any problems, please e-mail me.

N.B. I currently only support the linux/unix version so I don't have
time_fsize1.f or time_fsize3.f, but if anybody successfully ports this time
ephemeris to non-unix systems, I would be willing to include these
subroutines in this distribution.

Alan W. Irwin
