I’m intending to use some of the ultra-rapid 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 SP3 parser throws an exception because “QZS” isn’t one of the TimeSystem
enumerated type. I’ve had a quick look and it seems like 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);
}