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])
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])