Transformation matrix and angular velocity from a body frame to another
[M,omega] = CL_fr_bodyConvertMat(body,frame1,frame2,cjd [,tt_tref])
Computes the frame transformation from frame1 to frame2, which is characterized by a frame transformation matrix M and an angular velocity vector omega.
By convention:
- multiplying M by coordinates relative to frame1 yields coordinates relative to frame2.
- omega is the angular velocity vector of frame2 wrt frame1, with coordinates in frame1.
Available frames are :
'ICRS': International Celestial Reference System
'BCI': Body Centered Inertial
'BCF': Body Centered body Fixed
See Reference frames for more details on the definition of reference frames.
Available bodies are: "Mercury","Venus","Mars","Jupiter","Saturn","Uranus", "Neptune", "Sun" and "Moon"
Notes :
- The date "cjd" is relative to the TREF time scale.
- The frame names and body names are case sensitive
- Earth is not a valid body for this function. See CL_fr_convert.
- GCRS (identical to ICRS in CelestLab) is also accepted as a frame name.
(string) Name of the body. ("Mercury","Venus","Mars","Jupiter","Saturn","Uranus", "Neptune", "Sun" or "Moon") (1x1)
(string) Name of the initial frame. (1x1)
(string) Name of the final frame. (1x1)
Modified (1950.0) julian day (Time scale: TREF) (1xN)
(optional) TT-TREF [seconds]. Default is %CL_TT_TREF. (1xN or 1x1)
Frame transformation matrix from frame1 to frame2 (3x3xN)
Angular velocity vector of frame2 wrt frame1 with coordinates in frame1 [rad/s] (3xN)
CNES - DCT/SB
Report of the IAU/IAG working group on cartographic coordinates and rotational elements: 2009