コード例 #1
0
 def test_moon(self):
     t = gpstk.CivilTime(2000).toCommonTime()
     # object way:
     pos = gpstk.MoonPosition().getPosition(t)
     self.assertAlmostEqual(-89651219.03579193, pos[0])
     # functional way:
     pos = gpstk.moonPosition(t)
     self.assertAlmostEqual(-89651219.03579193, pos[0])
コード例 #2
0
ファイル: gpstk_util_test.py プロジェクト: Milfhunter/gpstk
 def test_moon(self):
     t = gpstk.CivilTime(2000).toCommonTime()
     # object way:
     pos = gpstk.MoonPosition().getPosition(t)
     self.assertAlmostEqual(-89651219.03579094, pos[0])
     # functional way:
     pos = gpstk.moonPosition(t)
     self.assertAlmostEqual(-89651219.03579094, pos[0])