Skip to content
Snippets Groups Projects
Commit 3444f11c authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Merge branch 'master' into orbit-determination

parents 7c7f302a 9ad7fd3b
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ public class SP3Parser implements OrbitFileParser {
file.setDataUsed(scanner.next());
file.setCoordinateSystem(scanner.next());
file.setOrbitType(SP3OrbitType.valueOf(scanner.next()));
file.setOrbitType(SP3OrbitType.parseType(scanner.next()));
file.setAgency(scanner.next());
break;
}
......@@ -251,9 +251,11 @@ public class SP3Parser implements OrbitFileParser {
// now identify the time system in use
final String tsStr = line.substring(9, 12).trim();
final TimeSystem ts = TimeSystem.GPS;
if (!tsStr.equalsIgnoreCase("ccc")) {
TimeSystem.valueOf(tsStr);
final TimeSystem ts;
if (tsStr.equalsIgnoreCase("ccc")) {
ts = TimeSystem.GPS;
} else {
ts = TimeSystem.valueOf(tsStr);
}
file.setTimeSystem(ts);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment