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

标签 python pyephem

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/

相关文章:

Python坐标转换ECI到ECEF

python - 生成一个 2 的幂的 NumPy 数组

python - 如何使用列表解包将格式化字符串转换为 f 字符串?

javascript - 如何从网站获取 : js, css、图像等所有文件并保存以供离线使用?

python - Astropy 中是否内置了日落/日出功能?

python - 非标 : iss predictions not matching nasa website

python - Django 日期输入解析?

python - 捕获视频的颜色直方图均衡

Python PyEphem 计算方位角和高度

python - pyephem 计算仰角