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.

class ephemerista.coords.anomalies.Anomaly(*, degrees)

Abstract base class for true and mean anomaly.

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

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].

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

class ephemerista.coords.anomalies.MeanAnomaly(*, degrees, type='mean_anomaly')

Represents the mean anomaly of an osculating orbit.

mean_anomaly(eccentricity)

Return the mean anomaly of the osculating orbit in radians.

Parameters:

eccentricity (float) – The eccentricity of the orbit

Return 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].

true_anomaly(eccentricity)

Return the true anomaly of the osculating orbit in radians.

Parameters:

eccentricity (float) – The eccentricity of the orbit

Return type:

float

class ephemerista.coords.anomalies.TrueAnomaly(*, degrees, type='true_anomaly')

Represents the true anomaly of an osculating orbit.

mean_anomaly(eccentricity)

Return the mean anomaly of the osculating orbit in radians.

Parameters:

eccentricity (float) – The eccentricity of the orbit

Return 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].

true_anomaly(eccentricity)

Return the true anomaly of the osculating orbit in radians.

Parameters:

eccentricity (float) – The eccentricity of the orbit

Return type:

float

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.