Package org.orekit.files.stk
Class STKEphemerisFileParser
java.lang.Object
org.orekit.files.stk.STKEphemerisFileParser
- All Implemented Interfaces:
EphemerisFileParser<STKEphemerisFile>
Parser of
STKEphemerisFiles.
The STK ephemeris file format specification is quite extensive and this implementation does not attempt (nor is it possible, given the lack of an STK scenario to provide context) to support all possible variations of the format. The following keywords are recognized (case-insensitive):
| Keyword | Supported | Comment |
|---|---|---|
| stk.v.*.* | Yes | STK version number |
| BEGIN/END Ephemeris | Yes | |
| ScenarioEpoch | Yes | Gregorian UTC time format (dd mmm yyyy hh:mm:ss.s) assumed;
the TimeFormat keyword is not recognized. |
| CentralBody | No | Class constructors require gravitational parameter. |
| CoordinateSystem | Yes | Implementation uses a frame mapping to map STKEphemerisFile.STKCoordinateSystems to Frames. |
| DistanceUnit | Yes | Only Meters and Kilometers are supported. |
| InterpolationMethod | No | The Orekit EphemerisSegmentPropagator class uses
AbstractTimeInterpolator.interpolate(AbsoluteDate, Stream)
to do Hermite interpolation, so the value of InterpolationMethod, if present, is
ignored. |
| InterpolationSamplesM1 | Yes | Note that the InterpolationMethod keyword is ignored, but the value of
InterpolationSamplesM1 will be used to determine the number of sample points in the
Hermite interpolator used by Orekit. |
| NumberOfEphemerisPoints | Yes | |
| BEGIN/END SegmentBoundaryTimes | Yes |
Any keyword in the format specification which is not explicitly named in the above table is not recognized and will cause a parse exception. Those keywords that are listed above as recognized but not supported are simply ignored.
The following ephemeris formats are recognized and supported:
- EphemerisTimePos
- EphemerisTimePosVel
- EphemerisTimePosVelAcc
- Since:
- 12.0
- Author:
- Andrew Goetz
-
Constructor Summary
ConstructorsConstructorDescriptionSTKEphemerisFileParser(String satelliteId, double mu, UTCScale utc, Map<STKEphemerisFile.STKCoordinateSystem, Frame> frameMapping) Constructs aSTKEphemerisFileParserinstance. -
Method Summary
Modifier and TypeMethodDescriptionparse(DataSource source) Parse an ephemeris file from a data source.
-
Constructor Details
-
STKEphemerisFileParser
public STKEphemerisFileParser(String satelliteId, double mu, UTCScale utc, Map<STKEphemerisFile.STKCoordinateSystem, Frame> frameMapping) Constructs aSTKEphemerisFileParserinstance.- Parameters:
satelliteId- satellite id for satellites parsed by the parsermu- gravitational parameter (m^3/s^2)utc- UTC scale for parsed datesframeMapping- mapping from STK coordinate system to Orekit frame
-
-
Method Details
-
parse
Description copied from interface:EphemerisFileParserParse an ephemeris file from a data source.- Specified by:
parsein interfaceEphemerisFileParser<STKEphemerisFile>- Parameters:
source- source providing the data to parse- Returns:
- a parsed ephemeris file.
-