<< Models Models CL_ephDE_getTDB >>

celestlab >> Models > CL_ephDE_getPVA

CL_ephDE_getPVA

Position, velocity and acceleration of a body using JPL's DExxx ephemerides

Calling Sequence

[pos, vel, acc] = CL_ephDE_getPVA(body, cjd [[, orig, ephem, tt_tref, opts]])

Description

Parameters

body:

(string) Name of the body. (1x1)

cjd:

Modified (1950.0) julian day (Time scale: TREF) (1xN)

orig:

(optional, string) Name of the origin. Default is "solar-sys-bary" (1x1)

ephem:

Scilab structure describing the ephemerides (see "See Also").

tt_tref:

(optional) TT-TREF [s]. Default is %CL_TT_TREF. (1xN or 1x1)

opts:

(structure, optional). Additional options. See above for details.

pos:

Position of body, relative to orig, in ICRF frame [m] (3xN)

vel:

Velocity of body, relative to orig, in ICRF frame [m/s] (3xN)

acc:

Acceleration of body, relative to orig, in ICRF frame [m/s^2] (3xN)

Authors

See also

Examples

// Position of Mars in ICRF (Origin = Earth)
// Using DE405 ephemeris files (default)
cjd = 21915:21920;
pos = CL_ephDE_getPVA("Mars", cjd, "Earth")

// Position, velocity, acceleration of Jupiter in ICRF (Origin = Solar system barycenter)
// Using DE405 ephemeris files (default)
cjd = 21915:21920;
[pos, vel, acc] = CL_ephDE_getPVA("Jupiter", cjd)

Report an issue
<< Models Models CL_ephDE_getTDB >>