SunV2:

Path: SC/Ephem

% Moderate precision sun model.
   Generates the sun vector in the earth-centered inertial frame. Will
   output the distance to the sun from the earth if two output
   arguments are given.
   SunV2 is computationally a little more intensive and gives more
   accurate results than SunV1

--------------------------------------------------------------------------
   Form:
   [u, r] = SunV2( jD, rSc )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   jD        (:)     Julian date
   rSc       (3,:)   Spacecraft vector in the ECI frame (km)

   -------
   Outputs
   -------
   u         (3,:)   Unit sun vector
   r         (:)     Distance from origin to sun (km)

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

Children:

Common: Time/DTSToDTA
Common: Time/Date2JD
Math: Linear/Mag
Math: Linear/Unit
Math: Trigonometry/CosD

Back to the SC Module page