poliastro.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 (♇)
and a way to define new bodies (Body
class).
Data references can be found in constants
Module Contents¶
Classes¶
docstring |
|
docstring |
Functions¶
|
-
poliastro.bodies.
_q
(c)¶
-
class
poliastro.bodies.
Body
¶ Bases:
collections.namedtuple()
docstring
-
__slots__
= []¶
-
property
angular_velocity
(self)¶
-
__str__
(self)¶ Return str(self).
-
__repr__
(self)¶ Return repr(self).
-
classmethod
from_parameters
(cls, parent, k, name, symbol, R, **kwargs)¶
-
classmethod
from_relative
(cls, reference, parent=None, k=None, name=None, symbol=None, R=None, **kwargs)¶
-
-
class
poliastro.bodies.
SolarSystemPlanet
¶ Bases:
poliastro.bodies.Body
docstring
-
plot
(self, epoch=None, label=None, use_3d=False, interactive=False, plane=Planes.EARTH_ECLIPTIC)¶ Plots the body orbit.
- Parameters
epoch (astropy.time.Time, optional) – Epoch of current position.
label (str, optional) – Label for the orbit, defaults to empty.
use_3d (bool, optional) – Produce a 3D plot, default to False.
interactive (bool, optional) – Produce an interactive (rather than static) image of the orbit, default to False. This option requires Plotly properly installed and configured for your environment.
-
-
poliastro.bodies.
Sun
¶
-
poliastro.bodies.
Mercury
¶
-
poliastro.bodies.
Venus
¶
-
poliastro.bodies.
Earth
¶
-
poliastro.bodies.
Mars
¶
-
poliastro.bodies.
Jupiter
¶
-
poliastro.bodies.
Saturn
¶
-
poliastro.bodies.
Uranus
¶
-
poliastro.bodies.
Neptune
¶
-
poliastro.bodies.
Pluto
¶
-
poliastro.bodies.
Moon
¶