<< CL_oe_car2cir Coordinates and frames CL_oe_car2equin >>

CelestLab >> Coordinates and frames > CL_oe_car2cireq

CL_oe_car2cireq

Cartesian to circular equatorial adapted orbital elements

Calling Sequence

[cireq,jacob] = CL_oe_car2cireq(pos,vel [,mu])

Description

Parameters

pos:

position [X;Y;Z] [m] (3xN)

vel:

velocity [Vx;Vy;Vz] [m/s] (3xN)

mu :

(optional) Gravitational constant. [m^3/s^2] (default value is %CL_mu)

cireq:

Orbital elements adapted to near-circular orbits [sma;ex;ey;ix,iy;L] [m,rad] (6xN)

jacob:

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

Authors

See also

Examples

// Example 1
pos = [7000.e3;1000.e3;-500.e3];
vel = [1.e3;2.e3;7e3];
cireq = CL_oe_car2cireq(pos,vel);

// Example 2
pos = [7000.e3;1000.e3;-500.e3];
vel = [1.e3;2.e3;7e3];
[cireq,jacob1] = CL_oe_car2cireq(pos,vel);
[pos2,vel2,jacob2] = CL_oe_cireq2car(cireq);
pos2 - pos // zero
vel2 - vel // zero
jacob2 * jacob1 // identity

Report an issue
<< CL_oe_car2cir Coordinates and frames CL_oe_car2equin >>