[AstroPy] Convert GPS time to UTC time
d.berry at jach.hawaii.edu
Mon Dec 9 12:22:43 EST 2013
On 9 December 2013 16:57, Aldcroft, Thomas
<aldcroft at head.cfa.harvard.edu> wrote:
> How about this with astropy 0.3:
>>>> from astropy.time import Time
>>>> t_gps = Time(3600.0, format='gps') # seconds since 1980-01-06 00:00:00
> '1980-01-06 01:00:00.000'
> This basically creates a Time object with the GPS format representation. By
> default this object is in TAI scale, so you first convert to UTC and then
> ask for the ISO format representation. As I understand GPS is not a time
> scale, but a simple difference of time in the TAI scale from the given
Doesn't that make it a timescale? After all TT (Terrestrial Time) is
also just a constant offset from TAI.
More information about the AstroPy