Untitled
unknown
java
a year ago
1.1 kB
7
Indexable
Never
import org.orekit.data.DataContext; import org.orekit.files.ccsds.ndm.odm.OdmParser; import org.orekit.frames.IERSConventions; import org.orekit.time.AbsoluteDate; import org.orekit.utils.ParsedUnitsBehavior; // Initialize parameters String root = "YourRootElement"; String formatVersionKey = "YourFormatVersionKey"; IERSConventions conventions = IERSConventions.IERS_2010; boolean simpleEOP = true; DataContext dataContext = DataContext.getDefault(); AbsoluteDate missionReferenceDate = AbsoluteDate.J2000_EPOCH; double mu = 398600.4418; // Example gravitational constant for Earth, you should use the appropriate value ParsedUnitsBehavior parsedUnitsBehavior = ParsedUnitsBehavior.STRICT_COMPLIANCE; // Create an instance of OdmParser OdmParser parser = new OdmParser(root, formatVersionKey, conventions, simpleEOP, dataContext, missionReferenceDate, mu, parsedUnitsBehavior); // Set the gravitational coefficient created from the knowledge of the central body double muCreated = 12345.0; // this is an arbitrary value, you should use the appropriate value parser.setMuCreated(muCreated);