poliastro2.worldview.solar_sys.bodies

Bodies of the Solar System.

Contains some predefined bodies of the Solar System:

  • Sun (☉)

  • Earth (♁)

  • Moon (☾)

  • Mercury (☿)

  • Venus (♀)

  • Mars (♂)

  • Jupiter (♃)

  • Saturn (♄)

  • Uranus (⛢)

  • Neptune (♆)

  • Pluto (♇)

  • Phobos

  • Deimos

  • Europa

  • Ganyemede

  • Enceladus

  • Titan

  • Titania

  • Triton

  • Charon

and a way to define new bodies (Body class).

Data references can be found in constants

Classes

Body(parent, k, name[, symbol, R, R_polar, ...])

SolarSystemPlanet(parent, k, name[, symbol, ...])

class poliastro2.worldview.solar_sys.bodies.Body(parent, k, name, symbol=None, R=<Quantity 0. km>, R_polar=<Quantity 0. km>, R_mean=<Quantity 0. km>, rotational_period=<Quantity 0. d>, J2=<Quantity 0.>, J3=<Quantity 0.>, mass=None, mean_a=<Quantity 0. km>)
property angular_velocity
classmethod from_parameters(parent, k, name, symbol, R, **kwargs)
classmethod from_relative(reference, parent, k, name, symbol=None, R=0, **kwargs)
class poliastro2.worldview.solar_sys.bodies.SolarSystemPlanet(parent, k, name, symbol=None, R=<Quantity 0. km>, R_polar=<Quantity 0. km>, R_mean=<Quantity 0. km>, rotational_period=<Quantity 0. d>, J2=<Quantity 0.>, J3=<Quantity 0.>, mass=None, mean_a=<Quantity 0. km>)
plot(epoch=None, label=None, plane=Planes.EARTH_ECLIPTIC, backend=None)

Plots the body orbit.

Parameters:
  • epoch (astropy.time.Time, optional) – Epoch of current position.

  • label (str, optional) – Label for the orbit, defaults to empty.

  • plane (Planes) – Reference plane of the coordinates.

  • backend (OrbitPlotterBackend) – An instance of OrbitPlotterBackend for rendendering the scene.

poliastro2.worldview.solar_sys.bodies._q(c)