ssapy_toolkit.Orbital_Mechanics.equally_spaced_ta
- ssapy_toolkit.Orbital_Mechanics.equally_spaced_ta(n_samples, orbit=None, a=None, e=None, rp=None, ra=None, n_dense=20000, degrees=False)[source]
Compute true anomalies (ta) for points approximately equally spaced by arc length around an elliptical orbit.
- Accepts either:
orbit : SSAPy Orbit object
a and e
rp and ra (periapsis and apoapsis radii)
- Constraints:
n_samples must be even
if n_samples >= 2, 0 and pi are always included
- Parameters:
n_samples (int) – Number of samples to return. Must be even.
orbit (ssapy.Orbit, optional) – SSAPy Orbit object.
a (float, optional) – Semi-major axis.
e (float, optional) – Eccentricity.
rp (float, optional) – Periapsis radius.
ra (float, optional) – Apoapsis radius.
n_dense (int, optional) – Number of dense samples used internally.
degrees (bool, optional) – If True, return degrees. Otherwise radians.
- Returns:
ta – True anomalies, either in radians or degrees.
- Return type:
ndarray