Caltech-IPAC / kete

Kete Solar System Survey tools
https://Caltech-IPAC.github.io/kete
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

True Anomaly calculation failing for hyperbolic orbits #52

Closed dahlend closed 5 months ago

dahlend commented 5 months ago
import neospy

elem = neospy.CometElements(desig="C/2005 L3", epoch=2455341.243793971, eccentricity=1.0011483272678154, inclination=139.44461092919363, lon_of_ascending=-71.2308763582533, peri_time=2454482.5825015577, peri_arg=47.208011093354905, peri_dist=5.594792535298549)

elem.true_anomaly
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[39], line 3
      1 import neospy
      2 elem = neospy.CometElements(desig="C[/2005](http://localhost:8888/2005) L3", epoch=2455341.243793971, eccentricity=1.0011483272678154, inclination=139.44461092919363, lon_of_ascending=-71.2308763582533, peri_time=2454482.5825015577, peri_arg=47.208011093354905, peri_dist=5.594792535298549)
----> 3 elem.true_anomaly

ValueError: Newton-Raphson root finding failed to converge due to non-finite evaluations---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[39], line 3
      1 import neospy
      2 elem = neospy.CometElements(desig="C[/2005](http://localhost:8888/2005) L3", epoch=2455341.243793971, eccentricity=1.0011483272678154, inclination=139.44461092919363, lon_of_ascending=-71.2308763582533, peri_time=2454482.5825015577, peri_arg=47.208011093354905, peri_dist=5.594792535298549)
----> 3 elem.true_anomaly

ValueError: Newton-Raphson root finding failed to converge due to non-finite evaluations