pyephem-行星的度数位置

时间:2018-07-30 10:24:49

标签: pyephem

做了一些搜索却找不到直接答案(嗯,我能理解的答案!)

我想计算给定时间和位置的行星(从太阳到冥王星)的度数(360度)。我有下面的代码。我想计算零度作为上升点并从那里开始。

日期,时间,位置的图表图。 AS = 0度,Jup =大约43度,Sat =大约93度,依此类推... Astro Chart for Date, Time & Location

非常感谢,威尔

>>> from ephem import *
>>> sun = Sun()
>>> moo = Moon()
>>> mer = Mercury()
>>> mar = Mars()
>>> ven = Venus()
>>> jup = Jupiter()
>>> sat = Saturn()
>>> plu = Pluto()
>>> northwich = Observer()
>>> northwich.lat = '53.15'
>>> northwich.lon = '02.31'
>>> northwich.elevation = 36
>>> northwich.date = '2018/7/30 10:56'
>>> sun.compute(northwich)
>>> moo.compute(northwich)
>>> mer.compute(northwich)
>>> mar.compute(northwich)
>>> ven.compute(northwich)
>>> jup.compute(northwich)
>>> sat.compute(northwich)
>>> plu.compute(northwich)
>>> print(sun.alt, sun.az, moo.alt, moo.az... etc

0 个答案:

没有答案