gpt4 book ai didi

python - 计算星星在天空中的位置,PyEphem

转载 作者:太空宇宙 更新时间:2023-11-03 12:51:12 24 4
gpt4 key购买 nike

我很难找到天空中星星的当前坐标(RA,DEC)。在网上我只找到了这个教程,如何使用 ephem 库: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. 创建一个主体对象 star 麻烦了,我只有 (RA,DEC) 星坐标

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

  3. 通过新坐标找到高度

关于这个库的准确性还有一个问题,它有多准确?我比较了这个程序和kstars之间的juliandate和sidestreal时间,看起来很相似。

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

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

最佳答案

我猜你在找 FixedBody?

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 解决方案。
但这实际上取决于您的需要;例如,不要依赖它盲目地引导您的望远镜,有更好的解决方案。

关于python - 计算星星在天空中的位置,PyEphem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6870743/

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