Celestial Bodies – ephemerista.bodies

The origin.py module.

This module provides the Origin class.

class ephemerista.bodies.Origin(origin=None, *, name)

The Origin model.

This class models coordinate origins which are typically celestial bodies or a barycenters.

Notes

Not all properties are defined for all available origins. Ephemerista will raise an exception if the user tries to access an undefined property.

property equatorial_radius: float

The equatorial radius of the celestial body in km.

Type:

float

property flattening: float

Flattening factor of the origin.

Type:

float

property gravitational_parameter: float

Gravitational parameter of the origin.

Type:

float

property mean_radius: float

Mean radius of the origin in km.

Type:

float

model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'populate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

property naif_id: int

NAID ID of the origin.

Type:

int

plot_3d_surface()

Plot the origin as a 3D surface in a plotly plot.

Return type:

Mesh3d

property polar_radius: float

Polar radius of the origin in km.

Type:

float

property radii: tuple[float, float, float]

Tri-axial ellipsoid of the origin.

Type:

tuple[float, float, float]