<< CL_gm_circumCircle Geometry and events CL_gm_eclipseCheck >>

celestlab >> Geometry and events > CL_gm_eclipse

CL_gm_eclipse

Analytical eclipse calculation for elliptical orbits

Calling Sequence

res = 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. Default: %CL_eqRad. [m] (1x1)

mu:

(optional) Gravitational constant. Default: %CL_mu. [m^3/s^2] (1x1)

res:

(structure) Results (see description above). [rad or sec] (each field is 1xN)

Authors

See also

Examples

cjd = CL_dat_cal2cjd(2009,03,21,6,0,0);
pos_sun = CL_eph_sun(cjd);
pos_sun_sph = CL_co_car2sph(pos_sun);
alpha_sun = pos_sun_sph(1);
delta_sun = pos_sun_sph(2);
sma = 8000.e3;
ecc = 0.1;
inc = 1.8;
argp = 0;
raan = 0;
res = CL_gm_eclipse(sma,ecc,inc,argp,raan,alpha_sun,delta_sun);
res.start
res.end
res.sun_orb
res.angle
res.duration

Report an issue
<< CL_gm_circumCircle Geometry and events CL_gm_eclipseCheck >>