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 颗行星。现在我需要在占星表中找到罗睺和克图宫。如何得到它?有什么功能吗?
我非常确定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)
,
我是一名优秀的程序员,十分优秀!