planetStates

planetStates.planetPositionVelocity(planetName, time, ephemerisPath='/supportData/EphemerisData/pck00010.tpc', observer='SSB', frame='J2000')[source]

A convenience function to get planet position from spice

Parameters:
  • planetName (name of planet to get position of) – planet name must be a valid SPICE celestial body string.

  • time (UTC time as string)

  • ephemerisPath (a string path to ephemeris file if something other than the default is desired)

  • observer (observer to get vectors relative to)

Return type:

position and velocity vector of planet in Solar System Barycenter inertial frame as lists [m], [m/s]