我发现当我将 (Alt, Az) 转换为 (Ra, Dec) 然后再使用 PyEphem 时,我没有得到我开始的内容。下面是一个简单的例子。
import ephem
print ephem.__version__
# '3.7.3.4'
gbt = ephem.Observer()
gbt.long = '-79:50:23.4'
gbt.lat = '38:25:59.23'
gbt.pressure = 0 # no refraction correction.
gbt.epoch = ephem.J2000
# Set the date to the epoch so there is nothing changing.
gbt.date = '2000/01/01 12:00:00'
# Should get the north pole right?
ra, dec = gbt.radec_of(0, '38:25:59.23')
# Not the north pole... error might be abberation.
print dec
# 89:59:30.5
# Now check internal consistancy by reversing the calculation.
pole = ephem.FixedBody()
pole._ra = ra
pole._dec = dec
pole._epoch = ephem.J2000
pole.compute(gbt)
# Should get what I started with right?
alt = pole.alt
# Not what I started with... error unknown.
print alt
# 38:26:26.7
正如评论中所指出的,虽然 30 英寸超过了维基百科规定的 20 英寸的最大效果,但没有准确地找到北极可能只是恒星像差。
当我做反向计算时,我没有得到同样的结果,这让我很困惑。有什么建议么?