Gravity Engine 2 9.0
Loading...
Searching...
No Matches
GravityEngine2.EphemerisLoader Class Reference

Class to load ephemeris data and place is GEBodyState array. More...

Static Public Member Functions

static bool LoadFile (EphemerisData eData, GBUnits.Units worldUnits, double startTimeJD=0)
 
static bool LoadGMAT_ECIF (EphemerisData eData, GBUnits.Units worldUnits, double startTimeJD=0)
 Parse GMAT OEM (Orbit Ephemeris Message) file format and create EphemerisData instance.
 
static double3[] LoadPitchTable (string resFile)
 Load a table of (t, pitch) with: t: world time from start of launch pitch: angle in radians from horizontal at time t.
 

Detailed Description

Class to load ephemeris data and place is GEBodyState array.

This array can then be used to init an EPHEMERIS propagator in GE.

Member Function Documentation

◆ LoadGMAT_ECIF()

static bool GravityEngine2.EphemerisLoader.LoadGMAT_ECIF ( EphemerisData eData,
GBUnits::Units worldUnits,
double startTimeJD = 0 )
static

Parse GMAT OEM (Orbit Ephemeris Message) file format and create EphemerisData instance.

GMAT OEM files follow the CCSDS standard format with:

  • Header section with metadata
  • META_START/META_STOP section with object information
  • Data section with time, position (x,y,z), and velocity (vx,vy,vz)

Expected data format per line: YYYY-MM-DDTHH:MM:SS.SSS X_POS Y_POS Z_POS X_VEL Y_VEL Z_VEL

Parameters
fileNameName of the GMAT OEM file without suffix (needs to be in Resources folder, and have a .txt extension)
worldUnitsTarget units for the data
isRelativeWhether the data is relative to a center body
Returns
EphemerisData instance with parsed data, or null if parsing fails

◆ LoadPitchTable()

static double3[] GravityEngine2.EphemerisLoader.LoadPitchTable ( string resFile)
static

Load a table of (t, pitch) with: t: world time from start of launch pitch: angle in radians from horizontal at time t.

Parameters
resFile
Returns
double3 array with x=t, y=pitch

The documentation for this class was generated from the following file: