<< CL_oe_cir2kep Coordinates and frames CL_oe_kep2car >>

celestlab >> Coordinates and frames > CL_oe_convert

CL_oe_convert

Conversion of orbital elements

Calling Sequence

[oe2, jacob] = CL_oe_convert(type_oe1, type_oe2, oe1 [[, mu, cjac]])

Description

Parameters

type_oe1:

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

type_oe2:

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

oe1:

Input orbital elements. (6xN)

oe2:

Output orbital elements. (6xN)

mu:

(optional) Gravitational constant. Default: %CL_mu. [m^3/s^2] (1x1)

cjac:

(boolean, optional) Jacobian computation indicator: %t if jacobian should be computed. Default: %t. (1x1)

jacob:

Transformation jacobian (See Orbital elements for more details). (6x6xN)

Authors

Examples

// Example 1
pos = [7000.e3; 1000.e3; -500.e3];
vel = [1.e3; 2.e3; 7e3];
kep = CL_oe_convert("pv", "kep", [pos; vel])

// Example 2
cir = [7000.e3; 0.1; 0.2; 1; 2; 3];
[kep, jacob1] = CL_oe_convert("cir", "kep", cir);
[cir2, jacob2] = CL_oe_convert("kep", "cir", kep);
cir2 - cir // => zero
jacob2 * jacob1 // => identity

Report an issue
<< CL_oe_cir2kep Coordinates and frames CL_oe_kep2car >>