boinor.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
Attributes¶
Classes¶
Built-in immutable sequence. |
|
Built-in immutable sequence. |
Module Contents¶
- class boinor.bodies.Body¶
Bases:
namedtuple('_Body', ['parent','k','name','symbol','R','R_polar','R_mean','rotational_period','J2','J3','mass','mean_a'])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¶
Return angular velocity of Body.
- __str__()¶
Return str(self).
- __reduce__()¶
Helper for pickle.
- __repr__()¶
Return repr(self).
- tmp_G()¶
pylint detects an import error with G, so we add a test whether G is available
- classmethod from_parameters(parent, k, name, symbol, R, **kwargs)¶
- classmethod from_relative(reference, parent, k, name, symbol=None, R=0, **kwargs)¶
- class boinor.bodies.SolarSystemPlanet¶
Bases:
BodyBuilt-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.
- 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
OrbitPlotterBackendfor rendendering the scene.
- __slots__ = ()¶
- property angular_velocity¶
Return angular velocity of Body.
- __str__()¶
Return str(self).
- __reduce__()¶
Helper for pickle.
- __repr__()¶
Return repr(self).
- tmp_G()¶
pylint detects an import error with G, so we add a test whether G is available
- classmethod from_parameters(parent, k, name, symbol, R, **kwargs)¶
- classmethod from_relative(reference, parent, k, name, symbol=None, R=0, **kwargs)¶
- boinor.bodies.Sun¶
- boinor.bodies.Mercury¶
- boinor.bodies.Venus¶
- boinor.bodies.Earth¶
- boinor.bodies.Mars¶
- boinor.bodies.Jupiter¶
- boinor.bodies.Saturn¶
- boinor.bodies.Uranus¶
- boinor.bodies.Neptune¶
- boinor.bodies.Pluto¶
- boinor.bodies.Moon¶
- boinor.bodies.Phobos¶
- boinor.bodies.Deimos¶
- boinor.bodies.Europa¶
- boinor.bodies.Ganymede¶
- boinor.bodies.Enceladus¶
- boinor.bodies.Titan¶
- boinor.bodies.Titania¶
- boinor.bodies.Triton¶
- boinor.bodies.Charon¶