EarthEclipseDuration:

Path: SC/Ephem

% Compute the eclipse duration in earth orbit.
 Uses the orbit radius at perigee for the computation. The orbital elements
 are:

   [Semi-major axis, Inclination, Right ascension of the ascending node,
   Argument of perigee, Eccentricity, Mean Anomaly]

 Type EarthEclipseDuration for a demo in a 7000 km 85 deg orbit. Uses SunBeta
 and EclipseDuration.

--------------------------------------------------------------------------
   Form:
   [d, dMax] = EarthEclipseDuration( el, jD )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   el          (1,6) [a i W w e M]
   jD          (1,:) Julian date (days)

   -------
   Outputs
   -------
   d           (1,:) Eclipse duration (sec)
   dMax        (1,1) Maximum eclipse duration (sec)

--------------------------------------------------------------------------