Note
Go to the end to download the full example code.
Propagating single TLE#
Propagates a single TLE for a given NORAD ID and propagates the trajectory
import numpy as np
import pyvista as pv
import mirage as mr
import mirage.vis as mrv
date_space = mr.date_linspace(mr.today(), mr.today() + mr.hours(3), 1000)
# Propagate out one day
r_eci = mr.propagate_satnum_to_dates(dates=date_space, satnum=25544)
# Propagates ISS, note that output is technically in TEME frame, but we'll treat it as if it's just ECI
Let’s scatter plot the object positions we’ve propagated
pl = pv.Plotter()
mrv.plot_earth(pl, date=date_space[0])
mrv.plot3(
pl,
r_eci,
line_width=4,
lighting=False,
)
pl.camera.focal_point = (0.0, 0.0, 0.0)
pl.camera.position = 25e3 * np.array([1, 1, 0.3])
pl.show()

Total running time of the script: (0 minutes 15.635 seconds)