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¶
Built-in immutable sequence. |
|
Built-in immutable sequence. |
Attributes¶
- class poliastro.bodies.Body¶
Bases:
namedtuple
('_Body'
, ['parent'
,'k'
,'name'
,'symbol'
,'R'
,'R_polar'
,'R_mean'
,'rotational_period'
,'J2'
,'J3'
,'mass'
])Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- __slots__ = []¶
- property angular_velocity(self)¶
- __str__(self)¶
Return str(self).
- __reduce__(self)¶
Helper for pickle.
- __repr__(self)¶
Return repr(self).
- classmethod from_parameters(cls, parent, k, name, symbol, R, **kwargs)¶
- classmethod from_relative(cls, reference, parent, k, name, symbol=None, R=0, **kwargs)¶
- __add__()¶
Return self+value.
- __contains__()¶
Return key in self.
- __delattr__()¶
Implement delattr(self, name).
- __dir__()¶
Default dir() implementation.
- __eq__()¶
Return self==value.
- __format__()¶
Default object formatter.
- __ge__()¶
Return self>=value.
- __getattribute__()¶
Return getattr(self, name).
- __getitem__()¶
Return self[key].
- __getnewargs__()¶
- __gt__()¶
Return self>value.
- __hash__()¶
Return hash(self).
- __iter__()¶
Implement iter(self).
- __le__()¶
Return self<=value.
- __len__()¶
Return len(self).
- __lt__()¶
Return self<value.
- __mul__()¶
Return self*value.
- __ne__()¶
Return self!=value.
- __reduce_ex__()¶
Helper for pickle.
- __rmul__()¶
Return value*self.
- __setattr__()¶
Implement setattr(self, name, value).
- __sizeof__()¶
Size of object in memory, in bytes.
- __subclasshook__()¶
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- count()¶
Return number of occurrences of value.
- index()¶
Return first index of value.
Raises ValueError if the value is not present.
- class poliastro.bodies.SolarSystemPlanet¶
Bases:
Body
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- __slots__ = []¶
- 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.
plane (Planes) – Reference plane of the coordinates.
- property angular_velocity(self)¶
- __str__(self)¶
Return str(self).
- __reduce__(self)¶
Helper for pickle.
- __repr__(self)¶
Return repr(self).
- classmethod from_parameters(cls, parent, k, name, symbol, R, **kwargs)¶
- classmethod from_relative(cls, reference, parent, k, name, symbol=None, R=0, **kwargs)¶
- __add__()¶
Return self+value.
- __contains__()¶
Return key in self.
- __delattr__()¶
Implement delattr(self, name).
- __dir__()¶
Default dir() implementation.
- __eq__()¶
Return self==value.
- __format__()¶
Default object formatter.
- __ge__()¶
Return self>=value.
- __getattribute__()¶
Return getattr(self, name).
- __getitem__()¶
Return self[key].
- __getnewargs__()¶
- __gt__()¶
Return self>value.
- __hash__()¶
Return hash(self).
- __iter__()¶
Implement iter(self).
- __le__()¶
Return self<=value.
- __len__()¶
Return len(self).
- __lt__()¶
Return self<value.
- __mul__()¶
Return self*value.
- __ne__()¶
Return self!=value.
- __reduce_ex__()¶
Helper for pickle.
- __rmul__()¶
Return value*self.
- __setattr__()¶
Implement setattr(self, name, value).
- __sizeof__()¶
Size of object in memory, in bytes.
- __subclasshook__()¶
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
- count()¶
Return number of occurrences of value.
- index()¶
Return first index of value.
Raises ValueError if the value is not present.
- 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¶