gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 21:47:04 26 4
gpt4 key购买 nike

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

关于python - 在 python ephem 中,我无法获取某些星座的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52421442/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com