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/env python3 | |
import numpy as np | |
from sgp4.earth_gravity import wgs84 | |
from sgp4.io import twoline2rv | |
from astropy.time import Time | |
import astropy.units as u | |
from cysgp4 import PyTle, PyObserver, propagate_many, Satellite, PyDateTime | |
if __name__ == "__main__": | |
# TLE |
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
# Valid for Turin (45.0792 deg, 7.6760 deg, 239 m) | |
# Valid for 2020-03-20T19:00:00.000 for 1800 seconds | |
Object 80003 | |
1 80003U 20001A 20180.00000000 .00000000 00000-0 50000-4 0 07 | |
2 80003 53.0000 0.0000 0001000 0.0000 49.0909 15.05490756 05 | |
Object 80004 | |
1 80004U 20001A 20180.00000000 .00000000 00000-0 50000-4 0 08 | |
2 80004 53.0000 0.0000 0001000 0.0000 65.4545 15.05490756 04 | |
Object 80005 | |
1 80005U 20001A 20180.00000000 .00000000 00000-0 50000-4 0 09 |
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/env python | |
from __future__ import print_function | |
import numpy as np | |
import matplotlib | |
#matplotlib.use("Agg") | |
import matplotlib.pyplot as plt | |
import sys | |
# Get filename | |
fname=sys.argv[1] |
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/env python3 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import Circle | |
import astropy.units as u | |
from astropy.time import Time | |
from astropy.coordinates import get_body, solar_system_ephemeris | |
from astropy.coordinates import EarthLocation, GCRS, FK5 | |
from astropy.coordinates import SkyCoord, PrecessedGeocentric, CartesianRepresentation | |
from astropy.wcs import wcs |
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/env python3 | |
import numpy as np | |
from skyfield.api import Topos, load | |
from skyfield.api import EarthSatellite | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import Circle | |
import astropy.units as u | |
from astropy.wcs import wcs | |
if __name__ == "__main__": |
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/env python3 | |
import numpy as np | |
from sgp4.earth_gravity import wgs84 | |
from sgp4.io import twoline2rv | |
from astropy.time import Time | |
class TwoLineElement: | |
"""TLE class""" | |
def __init__(self, tle0, tle1, tle2): |
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/env python3 | |
import sys | |
import numpy as np | |
from astropy.wcs import wcs | |
w = wcs.WCS(sys.argv[1]) | |
sx = np.sqrt(w.wcs.cd[0, 0]**2+w.wcs.cd[0, 1]**2)*3600.0 | |
sy = np.sqrt(w.wcs.cd[1, 0]**2+w.wcs.cd[1, 1]**2)*3600.0 | |
ang1 = np.arctan2(w.wcs.cd[0, 1], w.wcs.cd[0, 0])*180.0/np.pi |
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/env python3 | |
""" | |
This test will compare the output of ephem, skyfield and sgp4 | |
Reference information from cbassa/sattools skymap | |
Time: 2019-10-31T18:22:00 | |
Location: 52.8344N, 6.3785E, 10m | |
TLE: | |
USA 276 | |
1 42689U 17022A 19300.77210760 0.00002000 00000-0 26008-4 0 09 |
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/env python3 | |
import json | |
import datetime | |
from spacetrack import SpaceTrackClient | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
if __name__ == "__main__": | |
# Login | |
st = SpaceTrackClient("username", "password") |
This file has been truncated, but you can view the full file.
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
Object 80000 | |
1 80000U 20001A 20180.00000000 .00000000 00000-0 50000-4 0 04 | |
2 80000 53.0000 0.0000 0001000 0.0000 0.0000 15.05490756 01 | |
Object 80001 | |
1 80001U 20001A 20180.00000000 .00000000 00000-0 50000-4 0 05 | |
2 80001 53.0000 0.0000 0001000 0.0000 16.3636 15.05490756 07 | |
Object 80002 | |
1 80002U 20001A 20180.00000000 .00000000 00000-0 50000-4 0 06 | |
2 80002 53.0000 0.0000 0001000 0.0000 32.7273 15.05490756 07 | |
Object 80003 |