Defines the class that provides the ability to convert GLONASS to/from UT1 (UTC Greenwich, to distinguish it from UTC(SU)), using data extracted from GLONASS navigation messages. The algorithm is sufficiently different from StdNavTimeOffset as to warrant its own implementation. This is mainly due to the terms of the polynomial being referenced to the time difference in days rather than seconds like the rest of the world.
Definition at line 58 of file GLOCNavUT1TimeOffset.hpp.
#include <GLOCNavUT1TimeOffset.hpp>
Public Member Functions | |
NavDataPtr | clone () const override |
Create a deep copy of this object. More... | |
void | dump (std::ostream &s, DumpDetail dl) const override |
void | dumpTerse (std::ostream &s) const |
TimeCvtSet | getConversions () const override |
bool | getOffset (TimeSystem fromSys, TimeSystem toSys, const CommonTime &when, double &offset) const override |
GLOCNavUT1TimeOffset () | |
Initialize all data to 0. More... | |
bool | validate () const override |
![]() | |
std::list< std::string > | compare (const NavDataPtr &right) const override |
CommonTime | getNearTime () const override |
bool | isSameData (const NavDataPtr &right) const override |
TimeOffsetData () | |
Set the messageType. More... | |
virtual | ~TimeOffsetData () |
Obligatory virtual destructor. More... | |
![]() | |
virtual std::string | getClassName () const |
std::string | getDumpTime (DumpDetail dl, const CommonTime &t) const |
std::string | getDumpTimeHdr (DumpDetail dl) const |
std::string | getSignalString () const |
bool | getSVN (const SatID &sat, const gnsstk::CommonTime &when, std::string &svn) const |
virtual CommonTime | getUserTime () const |
NavData () | |
Initialize internal data fields. More... | |
Public Attributes | |
double | B0 |
Time bias in seconds. More... | |
double | B1 |
Time drift in s/s. More... | |
double | B2 |
Time drift rate in s/s**2. More... | |
unsigned | NB |
Day since the most recent leap year-aligned 4 years. More... | |
CommonTime | refTime |
Reference time for computation. More... | |
double | UTCTAI |
Leap seconds - not really used. More... | |
![]() | |
NavMessageID | signal |
Source signal identification for this navigation message data. More... | |
CommonTime | timeStamp |
std::string | weekFmt |
Additional Inherited Members | |
![]() | |
static gnsstk::SatMetaDataStore * | getSatMetaDataStore () |
Accessor for python. More... | |
static void | setSatMetaDataStore (gnsstk::SatMetaDataStore *smds) |
Accessor for python. More... | |
![]() | |
static const GNSSTK_EXPORT std::string | dumpTimeFmt |
Time format used for the dump method (Full). More... | |
static const GNSSTK_EXPORT std::string | dumpTimeFmtBrief |
Time format used for the dump method (Brief). More... | |
static GNSSTK_EXPORT gnsstk::SatMetaDataStore * | satMetaDataStore = nullptr |
Set this to a valid store to get PRN->SVN translations in dump(). More... | |
![]() | |
double | msgLenSec |
gnsstk::GLOCNavUT1TimeOffset::GLOCNavUT1TimeOffset | ( | ) |
Initialize all data to 0.
Definition at line 47 of file GLOCNavUT1TimeOffset.cpp.
|
inlineoverridevirtual |
Create a deep copy of this object.
Implements gnsstk::NavData.
Definition at line 64 of file GLOCNavUT1TimeOffset.hpp.
|
overridevirtual |
Print the contents of this object in a human-readable format. Uses parameters for GLONASS instead of generalized.
[in,out] | s | The stream to write the data to. |
[in] | dl | The level of detail the output should contain. |
Reimplemented from gnsstk::NavData.
Definition at line 57 of file GLOCNavUT1TimeOffset.cpp.
void gnsstk::GLOCNavUT1TimeOffset::dumpTerse | ( | std::ostream & | s | ) | const |
Print the contents of this object in a terse format.
[in,out] | s | The stream to write the data to. |
Definition at line 108 of file GLOCNavUT1TimeOffset.cpp.
|
overridevirtual |
The set of time system conversions this class is capable of making.
Implements gnsstk::TimeOffsetData.
Definition at line 146 of file GLOCNavUT1TimeOffset.cpp.
|
overridevirtual |
Get the offset, in seconds, to apply to times when converting them from fromSys to toSys.
[in] | fromSys | The time system to convert from. |
[in] | toSys | The time system to convert to. |
[in] | when | The time being converted, in the same time system as fromSys. |
[out] | offset | The offset in seconds where when(toSys)=when(fromSys)-offset. |
AssertionFailure | if when's time system is not fromSys. |
Implements gnsstk::TimeOffsetData.
Definition at line 124 of file GLOCNavUT1TimeOffset.cpp.
|
overridevirtual |
Checks the contents of this message against known validity rules as defined in the appropriate ICD.
Implements gnsstk::NavData.
Definition at line 155 of file GLOCNavUT1TimeOffset.cpp.
double gnsstk::GLOCNavUT1TimeOffset::B0 |
Time bias in seconds.
Definition at line 103 of file GLOCNavUT1TimeOffset.hpp.
double gnsstk::GLOCNavUT1TimeOffset::B1 |
Time drift in s/s.
Definition at line 104 of file GLOCNavUT1TimeOffset.hpp.
double gnsstk::GLOCNavUT1TimeOffset::B2 |
Time drift rate in s/s**2.
Definition at line 105 of file GLOCNavUT1TimeOffset.hpp.
unsigned gnsstk::GLOCNavUT1TimeOffset::NB |
Day since the most recent leap year-aligned 4 years.
Definition at line 102 of file GLOCNavUT1TimeOffset.hpp.
CommonTime gnsstk::GLOCNavUT1TimeOffset::refTime |
Reference time for computation.
Definition at line 101 of file GLOCNavUT1TimeOffset.hpp.
double gnsstk::GLOCNavUT1TimeOffset::UTCTAI |
Leap seconds - not really used.
Definition at line 106 of file GLOCNavUT1TimeOffset.hpp.