uataq.gps.gps_time_from_time_of_day#

uataq.gps.gps_time_from_time_of_day(logger_time, time_of_day)[source]#

Full GPS datetimes from a receiver’s time of day and the logger’s clock.

A receiver that logs only its time of day (HHMMSS[.ss], e.g. horel’s GTIM) needs a date. Each value takes the date of its logger timestamp, moved a day either way when the two straddle midnight, so the logger clock only has to be within 12 h of GPS time.

Parameters:
  • logger_time (Index | ArrayLike) – The logger’s timestamps (naive UTC), one per row.

  • time_of_day (Series | ArrayLike) – The receiver’s time of day as an HHMMSS number, aligned with logger_time. NaN, or a value that isn’t a valid time of day, gives NaT.

Returns:

GPS time (naive UTC), indexed like logger_time.

Return type:

Series