Spherical coordinates to cartesian coordinates
[pos_car, jacob] = CL_co_sph2car(pos_sph) [pos_car, vel_car, jacob] = CL_co_sph2car(pos_sph, pos_sph_dot) [pv_car, jacob] = CL_co_sph2car(pv_sph)
Converts spherical coordinates into cartesian coordinates.
Optionally converts time derivatives of spherical coordinates into time derivatives of cartesian coordinates.
Notes:
- The jacobian is computed if the corresponding output argument exists.
- Beware that the 3rd spherical coordinate is a radius and not an altitude.
- Input arguments cannot be named.
[lon;lat;r] Position vector in spherical coordinates [m,rad] (3xN)
(optional) [d(lon)/dt;d(lat)/dt;d(r)/dt] Time derivatives of spherical coordinates [rad/s,m/s] (3xN)
[x;y;z] Position vector in cartesian coordinates [m] (3xN)
(optional) [vx;vy;vz] Velocity vector in cartesian coordinates [m/s] (3xN)
[pos_sph; pos_sph_dot] (6xN)
[pos_car; vel_car] (6xN)
(optional) Transformation jacobian (3x3xN) or (6x6xN)
CNES - DCT/SB
1) Mecanique Spatiale, Cnes - Cepadues Editions, Tome I, section 3.2.3 (Les reperes de l'espace et du temps, Relations entre les coordonnees)
2) CNES - MSLIB FORTRAN 90, Volume T (mt_geoc_car)