eq2kep

ssapy.rvsampler.eq2kep(eq)[source][source]

Convert equinoctial orbital elements to classical Keplerian orbital elements.

Parameters:

eqarray-like

A list or array of equinoctial orbital elements. The elements are: - eq[0]: Semi-major axis (a) - eq[1]: Equinoctial parameter h (related to inclination and RAAN) - eq[2]: Equinoctial parameter k (related to inclination and RAAN) - eq[3]: Equinoctial parameter p (related to eccentricity and argument of periapsis) - eq[4]: Equinoctial parameter q (related to eccentricity and argument of periapsis) - eq[5]: Mean longitude (L)

Returns:

keplist

A list of classical Keplerian orbital elements: - kep[0]: Semi-major axis (a) - kep[1]: Eccentricity (e) - kep[2]: Inclination (i) [in radians] - kep[3]: Argument of periapsis (ω) [in radians] - kep[4]: Right ascension of the ascending node (Ω) [in radians] - kep[5]: Mean anomaly (M) [in radians]

Example:

>>> eq = [7000, 0.1, 0.2, 0.01, 0.02, 1.5]
>>> kep = eq2kep(eq)
>>> print(kep)
[7000, 0.022360679774997897, 0.40489178628508343, -0.4636476090008061, 1.1071487177940904, 1.9634954084936207]