<< CL_mod_meanObliquity DEPRECATED CL_mod_nutationAngles >>

CelestLab >> DEPRECATED > CL_mod_moonSunG50

CL_mod_moonSunG50

Moon and Sun positions in Gamma50 (Veis) reference frame - DEPRECATED

Calling Sequence

[u_moon,r_moon,u_sun,r_sun] = CL_mod_moonSunG50(cjd [,body="b"])
[u_moon,r_moon] = CL_mod_moonSunG50(cjd, body="m")
[u_sun,r_sun] = CL_mod_moonSunG50(cjd, body="s")

Description

Parameters

cjd :

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

body :

(string, optional) Type can be 'm' or 'moon' for the moon,'s' or 'sun' for the Sun (or 'b' or 'both' for both).

u_body :

Unit vector from Earth to body [rx;ry;rz] (3xN)

r_body :

Distance from Earth to body [m] (1xN)

Bibliography

Authors

Examples

// Sun position in J2000 frame on the 25th of october 2008 and 2009
cjd = CL_dat_cal2cjd([2008 2009],[10 10],[25 25]);
[r_sun,rs] = CL_mod_moonSunG50(cjd,'s');
pos_sun_G50 = CL_dMult(r_sun,rs);
M = CL_fr_G502J2000Mat(cjd);
pos_sun_J2000 = M*pos_sun_G50;

// Sun right ascension and declination at the same dates :
pos_sph = CL_co_car2sph(pos_sun_J2000);
alpha_sun = pos_sph(1,:);
delta_sun = pos_sph(2,:);

Report an issue
<< CL_mod_meanObliquity DEPRECATED CL_mod_nutationAngles >>