Skip to content

elements_from_state_vector returns bad result #25

Description

@jj314
from numpy import array
from orbital import elements_from_state_vector
r = array([-7.28535000e+07  8.92198056e-09  0.00000000e+00])
v = array([-1.84818933e+00  2.18661193e+03  0.00000000e+00])
mu = 1811405020000000.0
print(elements_from_state_vector(r, v, mu))

prints
OrbitalElements(a=40301757.83775852, e=0.8077004603395054, i=3.141592653589793, raan=nan, arg_pe=nan, f=3.1413914189703034)
raan and arg_pe are nan.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions