orbitx.utils._tle.get_tle_date

Contents

orbitx.utils._tle.get_tle_date#

orbitx.utils._tle.get_tle_date(tle_line_1: str) datetime64[source]#

Date corresponding to this TLE computed from Epoch Date and Julian Date Fraction

Example of Epoch date and Julian date fraction: 86 50.28438588 The Julian day fraction is just the number of days passed in the particular year. For example, the date above shows “86” as the epoch year (1986) and 50.28438588 as the Julian day fraction meaning a little over 50 days after January 1, 1986. This was computed as follows: Start with 50.28438588 days (Days = 50) 50.28438588 days - 50 = 0.28438588 days 0.28438588 days x 24 hours/day = 6.8253 hours (Hours = 6) 6.8253 hours - 6 = 0.8253 hours 0.8253 hours x 60 minutes/hour = 49.5157 minutes (Minutes = 49) 49.5157 - 49 = 0.5157 minutes 0.5157 minutes x 60 seconds/minute = 30.94 seconds (Seconds = 30.94)

Description adapted from spaceflight.nasa

Parameters:

tle_line_1 (str) – TLE first line

Returns:

time of TLE Example: .. code-block:: python3

line1 = “1 25544U 98067A 08264.51782528 -.00002182 12345-5 -11606-4 0 2927” tle_date = get_tle_date(line1) print(tle_date)

0208-09-20T12:25:40.104192

Return type:

np.datetime64