Path: Interplanetary/Ephemeris
% Determines eclipses in heliocentric coordinates. You must initialize the JPL ephemerides prior to using this function. For example, with the earth and moon. PlanetPosJPL( 'initialize', [3 10] ); -------------------------------------------------------------------------- Form: nEclipse = EclipseHelio( r, rP, planetID ) nEclipse = EclipseHelio( r, [], planetID, jD ) -------------------------------------------------------------------------- ------ Inputs ------ r (3,1) Position vector of spacecraft (km) rP (3,:) Heliocentric planet positions planetID (1,:) Planet IDs corresponding to the output of PlanetPosJPL jD (1,:) Julian dates ------- Outputs ------- nEclipse (1,:) Eclipse fraction --------------------------------------------------------------------------
Interplanetary: Ephemeris/PlanetPosJPL SC: Ephem/Eclipse
Back to the Interplanetary Module page