Go to the documentation of this file.
74 if(STR == std::string(
"GPUT"))
80 else if(STR == std::string(
"GAUT"))
86 else if(STR == std::string(
"SBUT"))
93 else if(STR == std::string(
"GLUT"))
99 else if(STR == std::string(
"GPGA") || STR == std::string(
"GAGP"))
105 else if(STR == std::string(
"GLGP"))
111 else if(STR == std::string(
"QZGP"))
117 else if(STR == std::string(
"QZUT"))
123 else if(STR == std::string(
"BDUT"))
129 else if(STR == std::string(
"BDGP"))
135 else if(STR == std::string(
"IRUT"))
141 else if(STR == std::string(
"IRGP"))
149 Exception e(
"Unknown TimeSystemCorrection type: " + str);
252 case GPUT:
return std::string(
"GPS to UTC");
253 case GAUT:
return std::string(
"GAL to UTC");
254 case SBUT:
return std::string(
"SBAS to UTC");
255 case GLUT:
return std::string(
"GLO to UTC");
256 case GPGA:
return std::string(
"GPS to GAL");
257 case GLGP:
return std::string(
"GLO to GPS");
258 case QZGP:
return std::string(
"QZS to GPS");
259 case QZUT:
return std::string(
"QZS to UTC");
260 case BDUT:
return std::string(
"BDT to UTC");
261 case BDGP:
return std::string(
"BDT to GPS");
262 case IRUT:
return std::string(
"IRN to UTC");
263 case IRGP:
return std::string(
"IRN to GPS");
264 default:
return std::string(
"ERROR");
273 case GPUT:
return std::string(
"GPUT");
274 case GAUT:
return std::string(
"GAUT");
275 case SBUT:
return std::string(
"SBUT");
276 case GLUT:
return std::string(
"GLUT");
277 case GPGA:
return std::string(
"GPGA");
278 case GLGP:
return std::string(
"GLGP");
279 case QZGP:
return std::string(
"QZGP");
280 case QZUT:
return std::string(
"QZUT");
281 case BDUT:
return std::string(
"BDUT");
282 case BDGP:
return std::string(
"BDGP");
283 case IRUT:
return std::string(
"IRUT");
284 case IRGP:
return std::string(
"IRGP");
285 default:
return std::string(
"ERROR");
293 s <<
"Time system correction for " <<
asString4() <<
": "
294 <<
asString() << std::scientific << std::setprecision(12);
301 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
302 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
306 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
307 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
311 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
312 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow)
317 s <<
", -TauC = " <<
A0
318 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
322 s <<
", A0G = " <<
A0 <<
", A1G = " <<
A1
323 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
327 s <<
", TauGPS = " <<
A0 <<
" sec, RefTime = yr/mon/day "
332 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
333 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
337 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
338 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
342 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
343 <<
", RefTime = week/sow " << bdt.
week <<
"/" << int(bdt.
sow);
347 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
348 <<
", RefTime = week/sow " << bdt.
week <<
"/" << int(bdt.
sow);
352 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
353 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
357 s <<
", A0 = " <<
A0 <<
", A1 = " <<
A1
358 <<
", RefTime = week/sow " << gps.
week <<
"/" << int(gps.
sow);
390 double corr(0.0), dt;
393 Exception e(
"Unable to compute correction - wrong TimeSystem");
394 Exception eSBAS(
"TimeSystemCorrection SBAS <=> UTC has not been implemented");
570 Exception e(
"TimeSystemCorrection is not defined.");
@ GPGA
GPS to GAL using A0 = A0G , A1 = A1G.
std::string & upperCase(std::string &s)
void dump(std::ostream &s) const
dump
@ SBUT
SBAS to UTC using A0, A1, incl. provider and UTC ID.
@ GLGP
GLO to GPS using A0 = TauGPS, A1 = 0.
CommonTime refTime
reference time for polynominal
CommonTime & setTimeSystem(TimeSystem timeSystem)
static const GNSSTK_EXPORT CommonTime BEGINNING_OF_TIME
earliest representable CommonTime
@ IRUT
IRN to UTC using A0, A1.
void fromString(const std::string &str)
@ Unknown
unknown time frame; for legacy code compatibility
bool isConverterFor(const TimeSystem &ts1, const TimeSystem &ts2) const
@ Unknown
Unknown or uninitialized stategy value.
CorrType
Supported time system correction types, cf. RINEX version 3 spec.
TimeSystemCorrection()
Empty constructor.
std::string asString4() const
Return 4-char string version of CorrType.
@ GAL
Galileo system time.
@ IRGP
IRN to GPS using A0, A1.
@ QZGP
QZS to GPS using A0, A1.
@ GPUT
GPS to UTC using A0, A1.
TimeSystem
Definition of various time systems.
int week
Full week number.
@ GLO
GLONASS system time (aka UTC(SU))
@ UTC
Coordinated Universal Time (e.g., from NTP)
static bool convertTimeSystemToCorrType(TimeSystem src, TimeSystem tgt, TimeSystemCorrection::CorrType &ct)
@ QZUT
QZS to UTC using A0, A1.
TimeSystem getTimeSystem() const
Obtain time system info (enum).
@ GAGP
GPS to GAL using A0 = A0G , A1 = A1G.
double Correction(const CommonTime &ct) const
@ BDGP
BDT to GPS using A0, A1 !! not in RINEX.
#define GNSSTK_THROW(exc)
@ BDUT
BDT to UTC using A0, A1.
std::string geoProvider
string 'EGNOS' 'WAAS' or 'MSAS'
@ GLUT
GLO to UTC using A0 = -TauC , A1 = 0.
@ GAUT
GAL to UTC using A0, A1.
std::string asString() const
Return readable string version of CorrType.
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42