<< CL_dat_str2cal Coordinates and frames CL_fr_bodyConvertMat >>

CelestLab >> Coordinates and frames > CL_fr_bodyConvert

CL_fr_bodyConvert

Position and velocity transformation from one body frame to another

Calling Sequence

[pos2,vel2,jacob] = CL_fr_bodyConvert(body,frame1,frame2,cjd,pos1, [,vel1,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 or 1x1)

pos1:

Position vector in initial frame. (3xN or 3x1)

vel1:

Velocity vector in initial frame. (3xN or 3x1)

tt_tref:

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

pos2:

Position vector in final frame. (3xN or 3x1)

vel2:

(optional) Velocity vector in final frame. (3xN or 3x1)

jacob:

(optional) Jacobian of the transformation (6x6xN)

Authors

Bibliography

See also

Examples

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

// ICRS to BCF
pos_EME2000 = [1e5;3e4;6e6];
vel_EME2000 = [-1e3;3e3;6e3];
[pos_BCF,vel_BCF] = CL_fr_bodyConvert("Mars","ICRS","BCI",cjd,pos_EME2000,vel_EME2000);

Report an issue
<< CL_dat_str2cal Coordinates and frames CL_fr_bodyConvertMat >>