Path: SCPro/ProEphemeris
% Computes eclipses from time and ECI position. Utilizes the low-precision sun ephemeris in SunV1. -------------------------------------------------------------------------- Form: n = EclipseFromECI(r, t, jD0, a) -------------------------------------------------------------------------- ------ Inputs ------ r (3,:) Position vector of the spacecraft t (1,:) Time vector jD0 (1,1) Initial Julian date a (1,:) Auxiliary input to plot ------- Outputs ------- n (1,:) Normalized sun intensity ( 0 < n < 1 ) -------------------------------------------------------------------------- See also: SunV1, Eclipse --------------------------------------------------------------------------