Formatting¶
Since gnss-calendar converts all epoch strings to a Python datetime 1 object, you can perform any operations supported by this package directly on the epoch property. Additionally you are able to receive the following formats.
Initialize an Object¶
Modified Julian Date (MJD)¶
The MJD therefore gives the number of days since midnight on November 17, 1858. This date corresponds to 2400000.5 days after day 0 of the Julian calendar.
When called with the parameter full=True
it includes the fraction of the day.
GPS Week and Day¶
The continious count of GPS weeks started on Jan 6, 1980. A GPS week starts on Sunday (GPSD=0) at 00:00 GPS time and ends on Saturday (GPSD=6) at 23:59 GPS time.
obj.wwww()
#>> gpsw, gpsd, gpswsec
#>> (2190, 6, 518400)
obj.gpsw()
#>> 2190
obj.gpsd()
#>> 6
obj.gpswsec()
#>> 518400
The method gpswsec
can be called with a modulo operand to determine the seconds per hour or day.
SINEX Format¶
Datetime as used in the SINEX (Solution INdependent EXchange Format) format 2.
RINEX Epoch¶
A datetime string as used in the RINEX epoch lines.
RINEX Filenames¶
Currently, RINEX v.3 and RINEX v.2 filenames are supported. If you like to substitute a specific pattern, please refer to Usage::Operations.
GFZ CHAMP Filenames¶
A GFZ internal filename that was defined in the era of the CHAMP satellite mission (2000).
When called with a parameter interval
the datetime will be rounded to the seconds given.
obj = GnssCalendar(epoch_str="2022-01-01 00:17:00")
obj.champ(900) # quaterly
#>> 21906az0900
ISO Datetimes¶
UNIX Seconds¶
Converts to seconds since Jan 1, 1970 UTC.