calc_GPS_time.py¶
- Calculates the GPS time for CryoSat-2 data
- Calculates the number of leap seconds that have passed for each GPS time
- Can be used to convert from TAI time to UTC
Calling Sequence¶
from cryosat_toolkit.calc_GPS_time import calc_GPS_time, count_leap_seconds
GPS_Time = calc_GPS_time(day, second, micsec)
n_leaps = count_leap_seconds(GPS_Time)
Arguments¶
day: day portion of CryoSat-2 date variablesecond: seconds portion of CryoSat-2 date variablemicsec: microseconds portion of CryoSat-2 date variable
Returns¶
- GPS time (seconds since 1980-01-06T00:00:00)