在 python ephem 中,我无法获得某些星座的位置

In python ephem I am unable to get position's of certain constellations

import ephem

date = '2018/9/20'

sun = ephem.Sun()
sun.compute(date)
print 'Sun in', list(ephem.constellation(sun))[1]

moon = ephem.Moon()
moon.compute(date)
print 'Moon in', list(ephem.constellation(moon))[1]

mars = ephem.Mars()
mars.compute(date)
print 'Mars in', list(ephem.constellation(mars))[1]

mercury = ephem.Mercury()
mercury.compute(date)
print 'Mercury in', list(ephem.constellation(mercury))[1]

jupiter = ephem.Jupiter()
jupiter.compute(date)
print 'Jupiter in', list(ephem.constellation(jupiter))[1]

venus = ephem.Venus()
venus.compute(date)
print 'Venus in', list(ephem.constellation(venus))[1]

saturn = ephem.Saturn()
saturn.compute(date)
print 'Saturn in', list(ephem.constellation(saturn))[1]

我已经找到了特定日期的所有 7 颗行星。现在我需要在 astro table 中找到 Rahu 和 Ketu 的房子。如何得到它?有什么功能吗?

我很确定 ephem 中只有 真实的 个行星可用。我找到了这个定义

Astronomically, Rahu and Ketu denote the points of intersection of the paths of the Sun and the Moon as they move on the celestial sphere.

使用一些数学会告诉你要点。也许this可以帮助你转换不同系统之间的坐标。

由此您可以在 ephem 中导出一个视点,它称为 Observer 并将其传递给 ephem.constellation(o)