Example #1
0
 def test_args(self):
     o = oyb.Orbit(a_m=1.064e7,
                   e=0.42607,
                   i_rad=39.687 * pi / 180,
                   O_rad=130.32 * pi / 180,
                   w_rad=42.373 * pi / 180,
                   M_rad=4.2866)
Example #2
0
 def test_example3p1(self):
     o = oyb.Orbit()
     o.setShape(9.6e6 - earth.eqRad_m, 2.1e7 - earth.eqRad_m)
     tht_rad = 120 * pi / 180
     M_rad = anomaly.true2mean(tht_rad, o.e)
     T_s = o.getPeriod()
     dt_s = M_rad * T_s / (2 * pi)
     self.assertTrue(abs(dt_s - 4.077e3) / dt_s < 1e-3)
Example #3
0
 def test_example4p7mod(self):
     e = 0.4
     a_m = 8e10 / (earth.mu_m3ps2 * (1 - e**2))
     M_rad = anomaly.true2mean(30 * pi / 180, e)
     o = oyb.Orbit(a_m=a_m,
                   e=e,
                   i_rad=30 * pi / 180,
                   O_rad=40 * pi / 180,
                   w_rad=60 * pi / 180,
                   M_rad=M_rad)
     rEci_m = o.getReci()
Example #4
0
 def setUp(self):
     hPer_km = 400
     hApo_km = 4000
     self.o = oyb.Orbit()
     self.o.setShape(1e3 * hPer_km, 1e3 * hApo_km)
Example #5
0
 def test_pqw(self):
     o = oyb.Orbit(e=0.5, M_rad=0.5 * pi)
     rPqw_m = o.getRpqw()
Example #6
0
 def test_default(self):
     o = oyb.Orbit()