pylupnt.Body

class pylupnt.Body

A celestial body: gravity parameter, radius, rotation rate, frames, optional gravity field.

static Earth(*args, **kwargs)

Overloaded function.

  1. Earth(n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘EGM96.cof’) -> pylupnt._pylupnt.Body

Create Earth, optionally loading an n x m spherical-harmonic gravity field.

  1. Earth(units: pylupnt._pylupnt.UnitSystem, n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘EGM96.cof’) -> pylupnt._pylupnt.Body

Create Earth in the given unit system, optionally with an n x m gravity field.

property GM

Gravitational parameter [m^3/s^2].

static Jupiter(*args, **kwargs)

Overloaded function.

  1. Jupiter() -> pylupnt._pylupnt.Body

Create Jupiter as a point-mass body.

  1. Jupiter(units: pylupnt._pylupnt.UnitSystem) -> pylupnt._pylupnt.Body

Create Jupiter as a point-mass body in the given unit system.

static Mars(*args, **kwargs)

Overloaded function.

  1. Mars(n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘GMM1.cof’) -> pylupnt._pylupnt.Body

Create Mars, optionally loading an n x m spherical-harmonic gravity field.

  1. Mars(units: pylupnt._pylupnt.UnitSystem, n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘GMM1.cof’) -> pylupnt._pylupnt.Body

Create Mars in the given unit system, optionally with an n x m gravity field.

static Moon(*args, **kwargs)

Overloaded function.

  1. Moon(n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘grgm900c.cof’) -> pylupnt._pylupnt.Body

Create the Moon, optionally loading an n x m spherical-harmonic gravity field.

  1. Moon(units: pylupnt._pylupnt.UnitSystem, n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘grgm900c.cof’) -> pylupnt._pylupnt.Body

Create the Moon in the given unit system, optionally with an n x m gravity field.

property R

Reference radius [m].

static Saturn(*args, **kwargs)

Overloaded function.

  1. Saturn() -> pylupnt._pylupnt.Body

Create Saturn as a point-mass body.

  1. Saturn(units: pylupnt._pylupnt.UnitSystem) -> pylupnt._pylupnt.Body

Create Saturn as a point-mass body in the given unit system.

static Sun(*args, **kwargs)

Overloaded function.

  1. Sun() -> pylupnt._pylupnt.Body

Create the Sun as a point-mass body.

  1. Sun(units: pylupnt._pylupnt.UnitSystem) -> pylupnt._pylupnt.Body

Create the Sun as a point-mass body in the given unit system.

static Venus(*args, **kwargs)

Overloaded function.

  1. Venus(n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘MGN75HSAAP.cof’) -> pylupnt._pylupnt.Body

Create Venus, optionally loading an n x m spherical-harmonic gravity field.

  1. Venus(units: pylupnt._pylupnt.UnitSystem, n: typing.SupportsInt | typing.SupportsIndex = 0, m: typing.SupportsInt | typing.SupportsIndex = 0, gravity_file: str = ‘MGN75HSAAP.cof’) -> pylupnt._pylupnt.Body

Create Venus in the given unit system, optionally with an n x m gravity field.

property fixed_frame

Body-fixed reference frame.

property gravity_field

Spherical-harmonic gravity field coefficients and metadata.

property id

Body identifier.

property inertial_frame

Inertial reference frame.

property name

Body display name.

property units

Unit system of the body’s constants.

property use_gravity_field

True if a spherical-harmonic gravity field is loaded.