<< Coordinates and frames Coordinates and frames CL_co_car2sph >>

CelestLab >> Coordinates and frames > CL_co_car2ell

CL_co_car2ell

Cartesian coordinates to elliptical coordinates

Calling Sequence

[pos_ell ,jacob] = CL_co_car2ell(pos_car [,er,obla])

Description

Parameters

pos_car :

Position vector in cartesian coordinates [X;Y;Z] [m] (3xN)

er :

(optional) Equatorial radius of reference ellipsoid [m] (default is %CL_eqRad)

obla :

(optional) Oblateness of reference ellipsoid (default is %CL_obla)

pos_ell :

Position vector in elliptical ("geodetic") coordinates [longitude;latitude;alt] [rad,m] (3xN)

jacob :

(optional) Transformation jacobian (3x3xN)

Authors

Bibliography

See also

Examples

// Example 1
pos_car = [4637885.347; 121344.608; 4362452.869];
[pos_ell] = CL_co_car2ell(pos_car);

// Example 2 : consistency test
pos_car = [4637885.347; 121344.608; 4362452.869];
[pos_ell,jacob1] = CL_co_car2ell(pos_car);
[pos_car2,jacob2] = CL_co_ell2car(pos_ell);
M = jacob1*jacob2;  // identity matrix

Report an issue
<< Coordinates and frames Coordinates and frames CL_co_car2sph >>