dsgp4.util.from_cartesian_to_keplerian_torch#

dsgp4.util.from_cartesian_to_keplerian_torch(state, mu)#

Same as from_cartesian_to_keplerian, but for torch tensors.

Parameters:#

state (torch.tensor): torch tensor 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:#

torch.tensor: torch tensor 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.