Anomalies – ephemerista.coords.anomalies
¶
The anomalies.py module.
This module provides the TrueAnomaly and MeanAnomaly classes.
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.anomalies.Anomaly¶
Abstract base class for true and mean anomaly.
- Fields:
-
field degrees:
float
[Required]¶ The value of the anomaly in degrees
- Constraints:
ge = -180
le = 180
- abstractmethod mean_anomaly(eccentricity)¶
Return the mean anomaly of the osculating orbit in radians.
- Parameters:
eccentricity (float) – The eccentricity of the orbit
- Return type:
float
- abstractmethod true_anomaly(eccentricity)¶
Return the true anomaly of the osculating orbit in radians.
- Parameters:
eccentricity (float) – The eccentricity of the orbit
- Return type:
float
- pydantic model ephemerista.coords.anomalies.MeanAnomaly¶
Represents the mean anomaly of an osculating orbit.
-
field anomaly_type:
Literal
['mean_anomaly'
] = 'mean_anomaly' (alias 'type')¶ The type of the anomaly
- mean_anomaly(eccentricity)¶
Return the mean anomaly of the osculating orbit in radians.
- Parameters:
eccentricity (float) – The eccentricity of the orbit
- Return type:
float
- true_anomaly(eccentricity)¶
Return the true anomaly of the osculating orbit in radians.
- Parameters:
eccentricity (float) – The eccentricity of the orbit
- Return type:
float
-
field anomaly_type:
- pydantic model ephemerista.coords.anomalies.TrueAnomaly¶
Represents the true anomaly of an osculating orbit.
-
field anomaly_type:
Literal
['true_anomaly'
] = 'true_anomaly' (alias 'type')¶ The type of the anomaly
- mean_anomaly(eccentricity)¶
Return the mean anomaly of the osculating orbit in radians.
- Parameters:
eccentricity (float) – The eccentricity of the orbit
- Return type:
float
- true_anomaly(eccentricity)¶
Return the true anomaly of the osculating orbit in radians.
- Parameters:
eccentricity (float) – The eccentricity of the orbit
- Return type:
float
-
field anomaly_type:
- ephemerista.coords.anomalies.eccentric_to_mean(anomaly, ecc)¶
Convert eccentric anomaly to mean anomaly.
- ephemerista.coords.anomalies.eccentric_to_true(anomaly, ecc)¶
Convert eccentric anomaly to true anomaly.
- ephemerista.coords.anomalies.mean_to_eccentric(anomaly, ecc)¶
Convert mean anomaly to eccentric anomaly.
- ephemerista.coords.anomalies.true_to_eccentric(anomaly, ecc)¶
Convert true anomaly to eccentric anomaly.