<< CL_oe_cireq2kep Coordinates and frames CL_oe_equin2car >>

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])

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 [m^3/s^2]. (default value is %CL_mu)

jacob:

(optional) 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
pos = [7000.e3;1000.e3;-500.e3];
vel = [1.e3;2.e3;7e3];
[kep,jacob1] = CL_oe_convert("pv","kep",[pos;vel]);
[pv2,jacob2] = CL_oe_convert("kep","pv",kep);
pv2 - [pos;vel] // zero
jacob2 * jacob1 // identity

Report an issue
<< CL_oe_cireq2kep Coordinates and frames CL_oe_equin2car >>