Path: SC/Ephem
% 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 ------- Outputs ------- nEclipse (1,:) Eclipse fraction --------------------------------------------------------------------------
SC: Ephem/Eclipse SC: Ephem/PlanetPosJPL
Back to the SC Module page