<< CL_co_car2sph Coordinates and frames CL_co_sph2car >>

celestlab >> Coordinates and frames > CL_co_ell2car

CL_co_ell2car

Elliptical coordinates to cartesian coordinates

Calling Sequence

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

Description

Parameters

pos_ell :

[lon; lat; alt] Position vector in elliptical ("geodetic") coordinates. [rad,m] (3xN)

er:

(optional) Equatorial radius. Default: %CL_eqRad. [m] (1x1)

obla:

(optional) Oblateness of reference ellipsoid. Default: %CL_obla. [-] (1x1)

pos_car :

[x;y;z] Position vector in cartesian coordinates. [m] (3xN)

jacob :

Transformation jacobian. (3x3xN)

Authors

Bibliography

See also

Examples

// Example 1 :
pos_ell = [0; %pi/4; 1000.e3];
pos_car = CL_co_ell2car(pos_ell)

// Example 2 : consistency test
pos_ell = [0; %pi/4; 1000.e3];
[pos_car, jacob1] = CL_co_ell2car(pos_ell);
[pos_ell2, jacob2] = CL_co_car2ell(pos_car);
pos_ell2 - pos_ell  // => zero
jacob2 * jacob1  // => identity matrix

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