Orekit unable to read an OPM file generated by itself
The attached OPM file has been generated using Orekit:
OpmWriter opmWriter = new OpmWriter(IERSConventions.IERS_2010, DataContext.getDefault(), orbit.getDate());
Generator generator = new KvnGenerator(getStringBuffer(), 17, buildBasename(), 5);
However, Orekit is not able to read its generated OPM file.
The problem is that the units are next to the last digit without a space between both. A fix is to increase the value of unitsColumn
parameter. But, the main issue is that this file has been generated by Orekit without any error. So, we can expect that Orekit can read it.
Several fix are possible:
- Fix the parsing to support the case where there is no space between the value or the unit
- Fix the writing to automatically add a space between the value and the unit in case the user initialized a too small
unitsColumn
value.