poliastro2.core.twobody.mean_elements¶
Functions
|
Get the ecliptic mean elements of a solar system body. |
- poliastro2.core.twobody.mean_elements.get_mean_elements(body, epoch=<Time object: scale='tt' format='jyear_str' value=J2000.000>)¶
Get the ecliptic mean elements of a solar system body.
- Parameters:
body (SolarSystemPlanet) – The celestial body for which to obtain mean elements.
epoch (astropy.time.Time, optional) – The epoch at which to compute the mean elements, by default J2000.
- Returns:
The state defined by position and velocity vectors of the body at the given epoch.
- Return type:
- Raises:
ValueError – If the body is not an instance of poliastro.bodies.SolarSystemPlanet.