I’m not quite sure if I’m missing something. I have a list of pre-computed ephemeris which I have form AbsolutePVCoordinates then added them into the SpaceCraftState list (with position, velocity, and acceleration). I then added a new segment and added the states list. The output XML looks prefect, except it is missing all the acceleration tag. Could I be missing something?
I have confirmed that the AbsolutePVCoordinates does include acceleration as well. Here is the code it’s just a modified version of what I see from the example code. Here I passed in the states, then use the “satellite.addNewSegment(states)” to add the states list.
OrekitEphemerisFile ephemerisFile = new OrekitEphemerisFile();
OrekitEphemerisFile.OrekitSatelliteEphemeris satellite = ephemerisFile.addSatellite("SATELLITE1");
satellite.addNewSegment(states);
// Create temp file
String tempOem = Files.createTempFile("OrekitEphemerisFileTest", ".oem").toString();
// OemWriter
String satId = "SATELLITE1";
Header headerTemplate = new Header(3);
headerTemplate.setOriginator(theOriginator);
OemMetadata template = new OemMetadata(2);
template.setTimeSystem(TimeSystem.UTC);
template.setObjectID(satId);
template.setObjectName(satId);
template.setCenter(new BodyFacade("EARTH", CelestialBodyFactory.getCelestialBodies().getEarth()));
template.setReferenceFrame(FrameFacade.map(eme2000));
EphemerisWriter writer = new EphemerisWriter(new WriterBuilder().buildOemWriter(),
headerTemplate,
template,
FileFormat.XML,
"dummy",
60);
writer.write(tempOem, ephemerisFile);
This created a output XML file just fine, but missing acceleration tag. Am I missing something? Thanks.