astro.Time#

class hohmannpy.astro.Time(date, time)#

Stores a date and time in UT1 and allows for rapid conversion to other time schemes (including Julian dates and Greenwich mean-sidereal time).

Takes in a date (MM/DD/YYYY) and time (HH:MM:SS.S) and via the use of @property automatically converts to the corresponding Julian date and Greenwich mean-sidereal time (GMST). The input time should be in UT1 but technically UTC+0 may also be used with approximately 1 s loss in accuracy.

Parameters:
  • date (str) – Current Gregorian date (MM/DD/YYYY).

  • time (str) – Current UT1 time (HH:MM:SS.S).

Notes

The Julian date and GMST are calculated from Algorithms 14 and 15 respectively in Vallado [1].

property gmst#

GMST computed from the current Julian date.

property julian_date#

Julian date computed from the current Gregorian date and UTD1 time. Only valid for dates between March 1, 1900 and February 28, 2100.