SunVectorECI:

Path: SC/Ephem

% Finds the sun vector any place in the solar system.
   Utilizes Planets and SolarSys to look up the planet ephemeris. If the
   input is a moon, the nearest planetary center is used.
--------------------------------------------------------------------------
   Form:
   SunVectorECI( 'initialize', center )
   rSunECI = SunVectorECI( 'update', jD, rSc )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action       (1,:)     'initialize' or 'update'

   'initialize'
   planetName   (1,:)     Center of spacecraft coordinates

   'update'
   jD           (1,1)     Julian date
   rSC          (3,1)     Spacecraft ECI position vector (km)

   -------
   Outputs
   -------
   rSunECI      (3,1)     Sun ECI position vector

--------------------------------------------------------------------------
   See also: Planets, SolarSys, CEcl2Eq, Moons
--------------------------------------------------------------------------

Children:

Common: Database/Constant
Common: Time/JD2000
Common: Time/JD2T
SC: Ephem/CEcl2Eq
SC: Ephem/Moons
SC: Ephem/Planets
SC: Ephem/SolarSys

Back to the SC Module page