Skip to content
This repository was archived by the owner on May 29, 2022. It is now read-only.

Corrected RINEX GLONASS times, which are stored as UTC (Moscow - 3h). #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion core/lib/FileHandling/RINEX3/Rinex3NavData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,13 @@ namespace gpstk
// specify the time system based on satellite system
time.setTimeSystem(TimeSystem::Any);
if(satSys == "G") time.setTimeSystem(TimeSystem::GPS);
if(satSys == "R") time.setTimeSystem(TimeSystem::GLO);
if(satSys == "R") {
time.setTimeSystem(TimeSystem::GLO);

// RINEX reports GLONASS times as UTC, not GLONASS time (Moscow +
// 3h). Return a GLONASS timestamp rather than UTC.
time += 3 * 3600.0;
}
if(satSys == "E") time.setTimeSystem(TimeSystem::GAL);
if(satSys == "C") time.setTimeSystem(TimeSystem::BDT);
if(satSys == "J") time.setTimeSystem(TimeSystem::QZS);
Expand Down