PlanetPosition:

Path: SC/Ephem

% The position vectors, gravitational parameters and velocity for the planets.

 The frame is heliocentric, i.e. xy-plane is the mean earth's orbital plane.
 This function uses persistent variables to store the planet elements
 obtained from Planets during the initialization call.

 You may use EITHER multiple planet IDs OR multiple dates when using this
 function, but not both.
--------------------------------------------------------------------------
   Form:
   [r, mu, v] = PlanetPosition( action, d )
     
   PlanetPosition( 'initialize', ids )
   [r, mu, v] = PlanetPosition( 'update', jD )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action    (1,:)       'initialize' or 'update'
   d         (1,n)       Julian date (days) for update or planet ids (1-9) for
                         initialize

   -------
   Outputs
   -------
   r         (3,n)       Planetary position vectors
   mu        (1,n)       Corresponding gravitational parameters
   v         (3,n)       Velocity vectors

--------------------------------------------------------------------------
   See also: Planets, SolarSys
--------------------------------------------------------------------------

Children:

SC: BasicOrbit/E2Nu
SC: BasicOrbit/M2E
SC: BasicOrbit/M2EApp
SC: BasicOrbit/M2EEl
SC: BasicOrbit/M2EHy
SC: BasicOrbit/M2Nu
SC: BasicOrbit/M2NuPb
SC: Ephem/Planets
SC: Ephem/SolarSys
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/TextS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Time/DTSToDTA
Common: Time/Date2JD
Common: Time/JD2T
Math: Linear/DupVect

Back to the SC Module page