计算天空中的恒星位置,PyEphem

2023-12-19

我很难找到天空中星星的当前坐标(RA、DEC)。 在网络中我只找到了这个教程,如何使用ephem库:http://asimpleweblog.wordpress.com/2010/07/04/astrometry-in-python-with-pyephem/ http://asimpleweblog.wordpress.com/2010/07/04/astrometry-in-python-with-pyephem/

据我了解,我需要:

  1. 创建观察者
telescope = ephem.Observer()
telescope.long =  ephem.degrees('10')
telescope.lat = ephem.degrees('60')
telescope.elevation = 200
  1. 创建一个主体对象星 这里有麻烦,我只有 (RA,DEC) 星星坐标

  2. 通过 .calculate(now()) 计算位置

  3. 通过新坐标查找海拔高度

关于这个库的准确性的另一个问题是,它的准确性如何?我比较了这个程序和 kstars 之间的 juliandate 和 sidestreal 时间,看起来非常相似。

和这个http://www.jgiesen.de/astro/astroJS/siderealClock/ http://www.jgiesen.de/astro/astroJS/siderealClock/

附言!或者可能有人可以为此目的推荐更好的库。


我猜您正在寻找固定主体?

telescope = ephem.Observer()
telescope.long =  ephem.degrees('10')
telescope.lat = ephem.degrees('60')
telescope.elevation = 200
star = ephem.FixedBody()
star._ra = 123.123
star._dec = 45.45
star.compute(telescope)
print star.alt, star.az

我不知道准确性; pyephem 使用与 xephem 相同的代码,例如行星的位置由舍入的 VSOP87 解给出(精度优于 1 角秒); kstars 似乎使用完整的 VSOP 解决方案。
但这实际上取决于您的需要;例如,不要盲目地依赖它来引导您的望远镜,对此有更好的解决方案。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

计算天空中的恒星位置,PyEphem 的相关文章

随机推荐