Last active
July 20, 2022 23:52
-
-
Save kieranshanley/00f80997e4d07501187461d9fc702e7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
from tletools import TLE | |
tle_string = """ | |
ISS (ZARYA) | |
1 25544U 98067A 22201.40857775 .00008240 00000+0 15195-3 0 9997 | |
2 25544 51.6419 172.0419 0005020 30.4744 71.6173 15.50043356350332 | |
""" | |
tle_lines = tle_string.strip().splitlines() | |
tle = TLE.from_lines(*tle_lines) | |
orbit = tle.to_orbit() | |
print("TLE = ", tle_string) | |
print() | |
print("SMA = ", orbit.a) | |
print("ECC", orbit.ecc) | |
print("INC", orbit.inc) | |
print("RAAN", orbit.raan) | |
print("AOP", orbit.argp) | |
print("TA = ", orbit.nu) | |
print("Epoch = {}\n).format(orbit.epoch)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment