PlanetaryDistanceToSun:

Path: SC/Ephem

% Finds the distance to the sun and the solar flux.
   For moons this uses only the planetary distance.
--------------------------------------------------------------------------
   Form:
   [r, f] = PlanetaryDistanceToSun( name, jD )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   name      (1,:)   Name of moon or planet
   jD        (1,:)   Julian date (days)

   -------
   Outputs
   -------
   r         (1,:)   Distance (au)
   f         (1,:)   Solar flux (W/m^2)

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

Children:

Common: Database/Constant
Common: Graphics/Plot2D
Common: Time/Date2JD
Math: Linear/Mag
SC: Ephem/Moons
SC: Ephem/PlanetPosition

Back to the SC Module page