TimeSystem parsing in SP3Parser
An exception is thrown parsing sp3 ephemeris produced by the qzss team. The time system in those files is "QZS", shown in the short extract below:
++ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
%c M cc QZS ccc cccc cccc cccc cccc ccccc ccccc ccccc ccccc
%c cc cc ccc ccc cccc cccc cccc cccc ccccc ccccc ccccc ccccc
%f 1.2500000 1.025000000 0.00000000000 0.000000000000000
The time parsing section in SP3Parser
final TimeSystem ts;
if (tsStr.equalsIgnoreCase("ccc")) {
ts = TimeSystem.GPS;
} else {
ts = TimeSystem.valueOf(tsStr);
}
could (should?) be changed to
final TimeSystem ts;
if (tsStr.equalsIgnoreCase("ccc")) {
ts = TimeSystem.GPS;
} else {
ts = TimeSystem.parseTimeSystem(tsStr);
}
Further discussion on the orekit forum.