This class provides an interface to a JPL Development Ephemeris (DE) file.
This file may contain a good amount of data, so sharing of this data is enabled via WsfDE_FileHandle, which provides the interface that clients should use. This class supports the following ephemerides: DE102, DE200, DE202, DE403, DE405, DE410, DE413, DE414, DE418, DE421, DE422, DE423, DE424, DE430, DE431, DE433, DE434, DE435, DE436, DE438, DE404, and DE406 format files.
This class does not support the "t" variants of these files (DE430t, DE432t, DE436t, and DE438t). Also note that some objects are not currently exposed by this class (e.g., lunar libration offsets).
| void WsfDE_File::GetPlanetEphemeris |
( |
const Date & | aEpoch, |
|
|
Body | aTarget, |
|
|
Body | aOrigin, |
|
|
Workspace & | aWorkspace, |
|
|
UtVec3d & | aPosition, |
|
|
UtVec3d & | aVelocity ) const |
Get the position and velocity for a body relative to another.
Retrieve the position and velocity of the aTarget relative to aOrigin at the given aEpoch. The position and velocity will be given in the ICRF. The input aEpoch is a two-component Julian date, where the epoch at which the ephemeris will be given is the sum of the two components. For simplicity, the full Julian date can be placed in the first component. However, for highest precision interpolation, aTimeJD should have its first component equal to the most recent midnight at or before the interpolation epoch, and the second component equal to the fraction of a day since that midnight.
The input time is on the TDB scale which is different from TT by periodic variations of magnitude less that 1.6 ms.
- Parameters
-
| aEpoch | - The epoch at which to produce the ephemeris. |
| aTarget | - The target body. |
| aOrigin | - The body to use as origin. |
| aWorkspace | [inout] - The handle's workspace, used to store values that might be reused. |
| aPosition | [out] - The ephemeris position in km. |
| aVelocity | [out] - The ephemeris velocity in km/s. |
References cEARTH, cEARTH_MOON_BARYCENTER, cMOON, and cSOLAR_SYSTEM_BARYCENTER.