Pyephem: how to calculate time of entering into next constellation

非 Y 不嫁゛ 提交于 2019-12-14 02:50:28

问题


Pyephem docs have example how to calculate constellation in which planet is in certain time.

>>> m = ephem.Moon('1980/6/1')
>>> print(ephem.constellation(m))
('Sgr', 'Sagittarius')

But how to calculate time when the planet will change constellation?


回答1:


Because planets can change direction and speed across the sky, there is no way to predict ahead of time exactly when a planet will cross the boundary to another constellation. The simplest approach would be to step forward in time by one day (or more? or less?) until the output of constellation() changes for the planet, and then back up and determine at exactly what time of day the transition occurred.



来源:https://stackoverflow.com/questions/27419558/pyephem-how-to-calculate-time-of-entering-into-next-constellation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!