<< CL_fr_bodyConvert Coordinates and frames CL_fr_convert >>

CelestLab >> Coordinates and frames > CL_fr_bodyConvertMat

CL_fr_bodyConvertMat

Transformation matrix and angular velocity from a body frame to another

Calling Sequence

[M,omega] = CL_fr_bodyConvertMat(body,frame1,frame2,cjd [,tt_tref])

Description

Parameters

body:

(string) Name of the body. ("Mercury","Venus","Mars","Jupiter","Saturn","Uranus", "Neptune", "Sun" or "Moon") (1x1)

frame1:

(string) Name of the initial frame. (1x1)

frame2:

(string) Name of the final frame. (1x1)

cjd:

Modified (1950.0) julian day (Time scale: TREF) (1xN)

tt_tref:

(optional) TT-TREF [seconds]. Default is %CL_TT_TREF. (1xN or 1x1)

M:

Frame transformation matrix from frame1 to frame2 (3x3xN)

omega:

Angular velocity vector of frame2 wrt frame1 with coordinates in frame1 [rad/s] (3xN)

Authors

Bibliography

See also

Examples

cjd = CL_dat_cal2cjd(2010,02,03,05,35,25);

// ICRS to BCF
[M,omega] = CL_fr_bodyConvertMat("Mars","ICRS","BCI",cjd);

Report an issue
<< CL_fr_bodyConvert Coordinates and frames CL_fr_convert >>