<< Geometry and events Geometry and events CL_ev_stationVisibility >>

CelestLab >> Geometry and events > CL_ev_eclipse

CL_ev_eclipse

Eclipse intervals calculation

Calling Sequence

[interv] = CL_ev_eclipse(t, pos, pos1 [, pos2, sr1, sr2, typ, tperiods, opts]);

Description

Parameters

t:

Time at which the observer positions are defined. (1xN)

pos:

Position of observer [m]. (3xN or 3x1)

pos1:

Position of body1 (= potentially eclipsed body) [m]. (3xN or 3x1)

pos2:

(optional) Position of body2 (= occulting body) [m]. Default is [0;0;0]. (3xN or 3x1)

sr1:

(optional) Radius of body1 (sphere) [m]. Default is %CL_body.Sun.eqRad. (1x1)

sr2:

(optional) Radius of body2 (sphere) [m]. Default is %CL_eqRad. (1x1)

typ:

(string, optional) Type of event: "umb", "pen", "umbc". Default is "umbc". (1x1)

tperiods:

(optional) Simulation periods (time intervals). Default is [-%inf; %inf] (2xQ)

opts:

(structure, optional) Additional options (see above). Default value = empty structure.

interv:

Eclipse entry and exit times: [t_start; t_end]. (2xN)

Authors

See also

Examples

// Start/end of eclipse periods (umbra) for an observer in space:
t = 0 : 5/1440 : 3;
pos_sat = 42164.e3 * [cos(2*%pi*t); sin(2*%pi*t); zeros(t)];
au = CL_dataGet("au");
pos_sun = au * [1; 0; 0]; // Sun
CL_ev_eclipse(t, pos_sat, pos_sun, typ="umb")

Report an issue
<< Geometry and events Geometry and events CL_ev_stationVisibility >>