dsgp4.util.from_cartesian_to_keplerian#
- dsgp4.util.from_cartesian_to_keplerian(r_vec, v_vec, mu)#
This function converts the provided state from Cartesian to Keplerian elements.
Parameters:#
r_vec (
np.array
): position vector in Cartesian coordinates v_vec (np.array
): velocity vector in Cartesian coordinates mu (float
): gravitational parameter of the central bodyReturns:#
np.array
: array of Keplerian elements: (a, e, i, Omega, omega, M)(i.e., semi-major axis, eccentricity, inclination, right ascension of ascending node, argument of perigee, mean anomaly). All the angles are in radians, eccentricity is unitless and semi-major axis is in SI.