OemParser missing call to setMuCreated()
In 11.0-SNAP when the user and the OEM file do not provide GM the OemParser
throws an exception. In 10.3 these files were accepted by using the GM of the central body specified in the file, if known.
The culprit seems to be that OemParser no longer calls setMuCreated(double)
. Not quite sure where this call should be after the reorganization, perhaps in finalizeMetadata()
?
Stacktrace:
org.orekit.errors.OrekitException: the central body gravitational coefficient cannot be retrieved from the ODM
at org.orekit.files.ccsds.ndm.odm.OdmParser.getSelectedMu(OdmParser.java:127)
at org.orekit.files.ccsds.ndm.odm.oem.OemParser.finalizeData(OemParser.java:237)
at org.orekit.files.ccsds.ndm.odm.oem.OemParser.build(OemParser.java:253)
at org.orekit.files.ccsds.ndm.odm.oem.OemParser.build(OemParser.java:66)
at org.orekit.files.ccsds.utils.lexical.KvnLexicalAnalyzer.accept(KvnLexicalAnalyzer.java:173)
at org.orekit.files.ccsds.utils.parsing.AbstractMessageParser.parseMessage(AbstractMessageParser.java:139)
at org.orekit.files.ccsds.ndm.odm.oem.OemParser.parse(OemParser.java:135)