Hello,
thank you for this great project!
I tried to parse the CSSDS OEM trajectories from https://spotthestation.nasa.gov/trajectory_data.cfm.
The XML-file is successfully parsed by Orekit, when the OEM embedded in NDM format is considered.
The TXT file contains empty comments, such as "COMMENT " - this is probably okay, as the specification https://public.ccsds.org/Pubs/502x0b2c1e2.pdf does not require text afterwards (empty remainder):
6.7.4 All comment lines shall begin with the ‘ COMMENT ’ keyword followed by at least one
space. This keyword must appear on every comment line, not just the first such line. The
remainder of the line shall be the comment value.[…]
But Orekit (11.0.2) throws an exceptions when encountering this:
org.orekit.errors.OrekitException: unable to parse line 29 of file ISS.txt:
COMMENT
at org.orekit.files.ccsds.ndm.odm.oem.OemParser.processKvnDataToken(OemParser.java:364)
at org.orekit.files.ccsds.utils.parsing.AbstractMessageParser.process(AbstractMessageParser.java:180)
at org.orekit.files.ccsds.utils.lexical.KvnLexicalAnalyzer.accept(KvnLexicalAnalyzer.java:160)
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)
at de.tau_tec.astro.orekit.OrekitHandler.(OrekitHandler.java:1450)
at de.tau_tec.astro.orekit.OrekitHandler.main(OrekitHandler.java:2112)