<< CL_gm_betaEclipse Geometry and events CL_gm_eclipseCheck >>

CelestLab >> Geometry and events > CL_gm_eclipse

CL_gm_eclipse

Analytical eclipse calculation for elliptical orbits

Calling Sequence

[result] = CL_gm_eclipse(sma,ecc,inc,argp,raan,alpha_sun,delta_sun [,er,mu])

Description

Parameters

sma:

Semi major axis [m] (1xN or 1x1)

ecc:

Eccentricity (1xN or 1x1)

inc:

Inclination [rad] (1xN or 1x1)

argp:

Argument of periapsis [rad] (1xN or 1x1)

raan:

Right ascension of ascending node [rad] (1xN or 1x1)

alpha_sun:

Sun right ascension [rad] (1xN or 1x1)

delta_sun:

Sun declination [rad] (1xN or 1x1)

er:

(optional) Equatorial radius [m] (default is %CL_eqRad)

mu:

(optional) Gravitational constant [m^3/s^2] (default value is %CL_mu)

result:

(structure) Various quantities that define the eclipse [rad,sec] (each field is 1xN)

Authors

See also

Examples

cjd = CL_dat_cal2cjd(2009,03,21,6,0,0);
sun = CL_mod_moonSunG50(cjd,'s');
sun_sph = CL_co_car2sph(sun);
alpha_sun = sun_sph(1,:);
delta_sun = sun_sph(2,:);
sma = 2000.e3+%CL_eqRad;
ecc = 0.1;
inc = CL_deg2rad(98);
argp = 0;
raan = 0;
[result] = CL_gm_eclipse(sma,ecc,inc,argp,raan,alpha_sun,delta_sun);
result.start
result.end
result.sun_orb
result.angle
result.duration
<< CL_gm_betaEclipse Geometry and events CL_gm_eclipseCheck >>