Orbitron和Pyephem有不同的输出(Lat和Long)

时间:2016-09-21 08:54:51

标签: pyephem

我试图使用pyephem库获取特定卫星的纬度。然而,当我将它与Orbitron输出的数据进行比较时,纬度是不同的。为什么会有所不同?

我的代码输出: Lat:-50.675605 Lon:-153.489527

Orbitron: Lat:50.8527ーS. Lon:153.4899ーW

这是我的代码:

import numpy as np
import ephem
import datetime
import functions
from datetime import timedelta, datetime
from math import degrees


name_ = "SATELLITE"
tle1 = "1 41463U 98067HT  16264.56991668  .00008327  00000-0  11928-3 0  9991"
tle2 = "2 41463  51.6441 300.8543 0000382  62.9562  67.6735 15.57105765 22715"


sat = ephem.readtle(name_,tle1,tle2)

strDate = "2016-09-21 10:05:47"
date_obj = datetime.strptime(strDate,'%Y-%m-%d %H:%M:%S')
date_ = date_obj + timedelta(hours=-9)
sat.compute(date_)
print("longitude: %f - latitude: %f" % (degrees(sat.sublong), degrees(sat.sublat)))

0 个答案:

没有答案