本文介绍了计算星在天空中的位置,PyEphem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have difficulties with finding current coordinates (RA, DEC) for star in sky. In net I have found only this one tutorial, how to use ephem library: 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)个星星的坐标

  1. Create a body Object star here is trouble, I have only (RA,DEC) coordinates for star

通过.calculate(now())

Calculate position by .calculate(now())

通过新坐标找到海拔高度

by new coordinates find altitude

关于此库的准确性的另一个问题,它的准确性如何?我已经比较了该程序和kstar之间的juliandate和sidetreal时间,看起来非常相似.

One more question about accuracy of this library, how accurate it is? I have compared juliandate and sidestreal time between this program and kstars, looks like quite similar.

和此 http://www.jgiesen.de/astro/astroJS/siderealClock/

PS!或者也许有人可以为此推荐更好的库.

PS! Or may be some one can reccomend better library for this purposes.

推荐答案

我猜您在寻找FixedBody吗?

I guess you're looking for 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解决方案.
但是,这实际上取决于您的需求.例如,不要依靠它盲目地引导您的望远镜,对此有更好的解决方案.

I don't know about the accuracy; pyephem uses the same code as xephem, and eg the positions of the planets are given by rounded-down VSOP87 solutions (accuracy better than 1 arcsecond); kstars appears to use the full VSOP solution.
But this will really depend on your need; eg don't rely on it blindly guiding your telescope, there are better solutions for that.

这篇关于计算星在天空中的位置,PyEphem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 02:13