<< CL_tle_set Trajectory and maneuvers CL_tle_update >>

CelestLab >> Trajectory and maneuvers > CL_tle_setElem

CL_tle_setElem

Sets TLE orbital state

Calling Sequence

[tle] = CL_tle_setElem(tle, type_oe, cjd, mean_oe [, frame, ut1_tref, tt_tref])

Description

Parameters

tle:

TLE structure (size N)

type_oe:

(string) Type of output orbital elements: "kep", "cir", "cireq", "equin" or "pv" (1x1)

cjd:

TLE epoch (modified julian date from 1950.0, TREF time scale except if frame == "native") (1xN or 1x1)

mean_oe:

Mean orbital elements (of type given by "type_oe") relative to the specified frame [m, m/s, rad] (6xN)

frame:

(string, optional) Output frame, see above for details. Default is "ECI".

ut1_tref:

(optional) UT1-TREF [seconds]. Default is %CL_UT1_TREF (1xN or 1x1)

tt_tref:

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

Authors

See also

Examples

tle = CL_tle_new();
// cjd in TREF, mean Keplerian elements relative to ECI
cjd = 18000;
mean_kep = [7200.e3; 0.1; 1; 0; 0; 0];
tle = CL_tle_setElem(tle, "kep", cjd, mean_kep)
// Check results
[mean_kep2, cjd2] = CL_tle_getElem(tle, "kep")

Report an issue
<< CL_tle_set Trajectory and maneuvers CL_tle_update >>