Given an ephemeris and a list of event tables, phasecalc calculates the phase of each event in each of the tables. The calculated values are stored in a column named PHASE. If the column exists it is overwritten.
phasecalc relies on the event table having a TIME column and the two attributes MJDREF and TIMEZERO.
The time of event n is then:
where
is the value stored in the TIME column.
An ephemeris is specified in terms of four quantities:
The phase of event n is defined as: