<< CL_fr_convert Coordinates and frames CL_fr_inertial2qsw >>

CelestLab >> Coordinates and frames > CL_fr_convertMat

CL_fr_convertMat

Frame transformation matrix and angular velocity vector

Calling Sequence

[M, omega] = CL_fr_convertMat(frame1, frame2, cjd, [ut1_tref, tt_tref, xp, yp, dX, dY, use_interp])

Description

Parameters

cjd:

Modified Julian date from 1950.0 (TREF time scale) (1xN or 1x1)

frame1:

(string) Initial frame (1x1)

frame2:

(string) Final frame (1x1)

ut1_tref:

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

tt_tref:

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

xp, yp:

(optional) Position of the pole in ITRS [rad](1xN or 1x1)

dX, dY:

(optional) Corrections to CIP coordinates [rad] (1xN or 1x1)

use_interp:

(optional, boolean) %t to use interpolation when computing CIP coordinates. Default is %t. (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

Examples

// Frame transformation from Veis to EME2000 (All optional arguments to default)
cjd_tref = 21010;
[M,omega] = CL_fr_convertMat("Veis", "EME2000", cjd_tref);

// Frame transformation from GCRS to TIRS
cjd_tref = [21010 , 21011];
[M,omega] = CL_fr_convertMat("GCRS", "TIRS", cjd_tref, ut1_tref=-0.2);

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