python-sgp4
python-sgp4 copied to clipboard
modula operation
It seems to affect nothing but perhaps it will be better to replace this line https://github.com/brandon-rhodes/python-sgp4/blob/fac882aed0e8e5eb2cbd17409e00c7feb7c577ea/sgp4/propagation.py#L1802 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'