Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modula operation #119

Open
trufanov-nok opened this issue Jul 12, 2023 · 0 comments
Open

modula operation #119

trufanov-nok opened this issue Jul 12, 2023 · 0 comments

Comments

@trufanov-nok
Copy link

It seems to affect nothing but perhaps it will be better to replace this line

mm = (xlm - argpm - nodem) % twopi

with

     temp_mm = xlm - argpm - nodem
     mm     = temp_mm % twopi if temp_mm >= 0.0 else -(-temp_mm % twopi)

like it's done for nodem few lines above. Because (xlm - argpm - nodem) could be negative.
Test TLE:

line1 = '1 41465U 16026B   16119.28938119 -.00000073  00000-0  00000+0 0  9994'
line2 = '2 41465  97.2725  25.4306 0011130 259.3700 198.8486 15.29059623    13'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant