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

Sun

Mercury

Venus

Earth

Mars

Jupiter

Saturn

Uranus

Neptune

Pluto

Moon

Phobos

Deimos

Europa

Ganymede

Enceladus

Titan

Titania

Triton

Charon

Classes

Body

class to contain data from bodies of the solar system

SolarSystemPlanet

class to contain data from planets of the solar system

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'])

class to contain data from bodies of the solar system

__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)

create body object from parameters

classmethod from_relative(reference, parent, k, name, symbol=None, R=0, **kwargs)

create body object from relative object

class boinor.bodies.SolarSystemPlanet

Bases: Body

class to contain data from planets of the solar system

this class only adds a plotting function to its parent class Body()

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.

__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)

create body object from parameters

classmethod from_relative(reference, parent, k, name, symbol=None, R=0, **kwargs)

create body object from relative object

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