Orbit Shapes – ephemerista.coords.shapes
¶
The shapes.py module.
This module provides several classes which provide different ways to define the shape of an orbit.
Semi-major axis and eccentricity:
SemiMajorAxisShape
Radius pairs:
RadiiShape
Altitude pairs:
AltitudesShape
Notes
The classes in this module are part of the ephemerista.coords.twobody.Keplerian
data model
for Keplerian orbits and should not be used directly.
- pydantic model ephemerista.coords.shapes.AltitudesShape¶
Orbit shape based on apoapsis and periapsis altitude.
-
field apoapsis_altitude:
float
[Required] (alias 'apoapsisAltitude')¶ The apoapsis altitude of the orbit [km]
- Constraints:
gt = 0
-
field periapsis_altitude:
float
[Required] (alias 'periapsisAltitude')¶ The periapsis altitude of the orbit [km]
- Constraints:
gt = 0
-
field shape_type:
Literal
['altitudes'
] = 'altitudes' (alias 'type')¶ The type of the orbit shape
- apoapsis_radius(mean_radius)¶
Return the apoapsis radius of the orbit in kilometers.
- Return type:
float
- eccentricity(mean_radius)¶
Return the eccentricity of the orbit.
- Return type:
float
- periapsis_radius(mean_radius)¶
Return the periapsis radius of the orbit in kilometers.
- Return type:
float
- semi_major_axis(mean_radius)¶
Return the semi-major axis of the orbit in kilometers.
- Return type:
float
-
field apoapsis_altitude:
- pydantic model ephemerista.coords.shapes.OrbitShape¶
Abstract base class for orbital shapes.
- abstractmethod apoapsis_radius(mean_radius)¶
Return the apoapsis radius of the orbit in kilometers.
- Parameters:
mean_radius (float) – Mean radius of the central body [km]
- Return type:
float
Notes
The
mean_radius
parameter is not being used by theSemiMajorAxisShape
andRadiiShape
subclasses.
- abstractmethod eccentricity(mean_radius)¶
Return the eccentricity of the orbit.
- Parameters:
mean_radius (float) – Mean radius of the central body [km]
- Return type:
float
Notes
The
mean_radius
parameter is not being used by theSemiMajorAxisShape
andRadiiShape
subclasses.
- abstractmethod periapsis_radius(mean_radius)¶
Return the periapsis radius of the orbit in kilometers.
- Parameters:
mean_radius (float) – Mean radius of the central body [km]
- Return type:
float
Notes
The
mean_radius
parameter is not being used by theSemiMajorAxisShape
andRadiiShape
subclasses.
- abstractmethod semi_major_axis(mean_radius)¶
Return the semi-major axis of the orbit in kilometers.
- Parameters:
mean_radius (float) – Mean radius of the central body [km]
- Return type:
float
Notes
The
mean_radius
parameter is not being used by theSemiMajorAxisShape
andRadiiShape
subclasses and can be set to zero.
- pydantic model ephemerista.coords.shapes.RadiiShape¶
Orbit shape based on apoapsis and periapsis radius.
-
field ra:
float
[Required] (alias 'apoapsisRadius')¶ The apoapsis radius of the orbit [km]
- Constraints:
gt = 0
-
field rp:
float
[Required] (alias 'periapsisRadius')¶ The periapsis radius of the orbit [km]
- Constraints:
gt = 0
-
field shape_type:
Literal
['radii'
] = 'radii' (alias 'type')¶ The type of the orbit shape
- apoapsis_radius(mean_radius)¶
Return the apoapsis radius of the orbit in kilometers.
- Return type:
float
- eccentricity(mean_radius)¶
Return the eccentricity of the orbit.
- Return type:
float
- periapsis_radius(mean_radius)¶
Return the periapsis radius of the orbit in kilometers.
- Return type:
float
- semi_major_axis(mean_radius)¶
Return the semi-major axis of the orbit in kilometers.
- Return type:
float
-
field ra:
- pydantic model ephemerista.coords.shapes.SemiMajorAxisShape¶
Orbit shape based on semi-major axis and eccentricity.
-
field ecc:
float
[Required] (alias 'eccentricity')¶ Eccentricity of the orbit
-
field shape_type:
Literal
['semi_major'
] = 'semi_major' (alias 'type')¶ The type of the orbit shape
-
field sma:
float
[Required] (alias 'semiMajorAxis')¶ Semi-major axis of the orbit [km]
- apoapsis_radius(mean_radius)¶
Return the apoapsis radius of the orbit in kilometers.
- Return type:
float
- eccentricity(mean_radius)¶
Return the eccentricity of the orbit.
- Return type:
float
- periapsis_radius(mean_radius)¶
Return the periapsis radius of the orbit in kilometers.
- Return type:
float
- semi_major_axis(mean_radius)¶
Return the semi-major axis of the orbit in kilometers.
- Return type:
float
-
field ecc: