Skip to content

modula operation #119

Open
Open
@trufanov-nok

Description

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'

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