计算天空中的恒星位置,PyEphem
我很难找到天空中星星的当前坐标(RA、DEC)。 在网络中我只找到了这个教程,如何使用 ephem 库: http://asimpleweblog.wordpress.com/2010/07/04/astrometry-in-python-with-pyephem/
据我了解,我需要:
- 创建观察者
望远镜 = ephem.Observer() Telescope.long = ephem. Degrees('10') Telescope.lat = ehem. Degrees('60') 望远镜.仰角 = 200
创建一个主体对象星 这里有麻烦,我只有 (RA,DEC) 星坐标
通过 .calculate(now()) 计算位置
通过新坐标查找高度
还有一个关于这个库的准确性的问题,它有多准确?我比较了这个程序和 kstars 之间的 juliandate 和 sidestreal 时间,看起来非常相似。
还有这个http://www.jgiesen.de/astro/astroJS/siderealClock/
附言!或者可能有人可以为此目的推荐更好的库。
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/
As I understood I need to:
- create observer
telescope = ephem.Observer() telescope.long = ephem.degrees('10') telescope.lat = ephem.degrees('60') telescope.elevation = 200
Create a body Object star
here is trouble, I have only (RA,DEC) coordinates for starCalculate position by .calculate(now())
by new coordinates find altitude
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.
and this http://www.jgiesen.de/astro/astroJS/siderealClock/
PS! Or may be some one can reccomend better library for this purposes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜您正在寻找固定主体?
我不知道准确性; pyephem 使用与 xephem 相同的代码,例如行星的位置由舍入的 VSOP87 解给出(精度优于 1 角秒); kstars 似乎使用完整的 VSOP 解决方案。
但这实际上取决于您的需要;例如,不要盲目地依赖它来引导您的望远镜,对此有更好的解决方案。
I guess you're looking for FixedBody?
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.
就我而言,固定体创建不起作用,应该是
in my case fixedbody creation does not work, should be