Query positions of spacecraft, planets, moons, and asteroids in the solar system
Query spacecraft and planetary ephemeris data using SPICE kernels.
pip install xhelio-spice
Spacecraft (43): Parker Solar Probe, Solar Orbiter, Juno, Cassini, Voyager 1/2, Mars 2020, MRO, New Horizons, Europa Clipper, Psyche, BepiColombo, JUICE, Lucy, Galileo, Dawn, MESSENGER, SOHO, IBEX, STEREO-A/B, Helios 1/2, Ulysses, Van Allen Probes, THEMIS, MAVEN, LRO, and more...
Planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
Moons: Moon, Titan, Europa, Ganymede, Io, Phobos, Deimos, and many more
Other: Sun, asteroids, comets, Solar System Barycenter
get_ephemeris — Position and velocity at single time (inline) or timeseries (written to CSV)compute_distance — Distance between two bodies over time range (min/max/mean, closest approach)transform_coordinates — Transform vectors between coordinate frames (RTN, J2000, ECLIPJ2000, etc.)list_spice_missions — List all supported spacecraftlist_coordinate_frames — List available coordinate framesmanage_kernels — Check status, download, load, or purge kernel cache