Note
Click here to download the full example code
Profiling SGP4ΒΆ
Out:
----------------------- Performance analysis -----------------------
Name | Executions | Mean time | Total time
-------------------------+--------------+---------------+---------------
Propagator:convert_time | 1 | 5.91993e-04 s | 5.91993e-04 s
SGP4:TEME_to_TLE | 1 | 2.08282e-03 s | 2.08282e-03 s
SGP4:propagate:steps | 1 | 1.49801e-02 s | 1.49801e-02 s
SGP4:propagate | 1 | 2.21229e-02 s | 2.21229e-02 s
--------------------------------------------------------------------
import numpy as np
from sorts.profiling import Profiler
from sorts.propagator import SGP4
p = Profiler()
prop = SGP4(
settings = dict(
out_frame='TEME',
),
profiler = p,
)
state0 = np.array([-7100297.113,-3897715.442,18568433.707,86.771,-3407.231,2961.571])
t = np.linspace(0,3600*24.0*2,num=5000)
mjd0 = 53005
print(prop)
states = prop.propagate(t, state0, mjd0, A=1.0, C_R = 1.0, C_D = 1.0)
print(p)
Total running time of the script: ( 0 minutes 0.025 seconds)