dsgp4.util.from_cartesian_to_keplerian#

dsgp4.util.from_cartesian_to_keplerian(state, mu)#

This function takes the state in cartesian coordinates and the gravitational parameter of the central body, and returns the state in Keplerian elements.

Parameters:#

state (np.array): numpy array of 2 rows and 3 columns, where

the first row represents position, and the second velocity. mu (float): gravitational parameter of the central body

Returns:#

np.array: numpy array of the six keplerian elements: (a,e,i,omega,Omega,mean_anomaly)

(i.e., semi major axis, eccentricity, inclination, right ascension of ascending node, argument of perigee, mean anomaly). All the angles are in radiants, eccentricity is unitless and semi major axis is in SI.