File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66that are used in the TLE format, and there is the unitful version :class:`TLEu`,
77whose attributes are quantities (:class:`astropy.units.Quantity`), a type able to represent
88a value with an associated unit taken from :mod:`astropy.units`.
9-
109Here is a short example of how you can use them:
1110
1211>>> tle_string = """
3029from astropy .time import Time
3130
3231# Maybe remove them from here?
33- from poliastro .core .angles import M_to_nu as _M_to_nu
32+ from poliastro .core .angles import E_to_nu as _E_to_nu , M_to_E as _M_to_E
3433from poliastro .twobody import Orbit as _Orbit
3534from poliastro .bodies import Earth as _Earth
3635
@@ -162,7 +161,8 @@ def a(self):
162161 def nu (self ):
163162 """True anomaly."""
164163 if self ._nu is None :
165- self ._nu = _M_to_nu (self .M * DEG2RAD , self .ecc ) * RAD2DEG
164+ M = self .M * DEG2RAD
165+ self ._nu = _E_to_nu (_M_to_E (M , self .ecc ), self .ecc ) * RAD2DEG
166166 return self ._nu
167167
168168 @classmethod
You can’t perform that action at this time.
0 commit comments