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

发布于 2024-11-27 02:06:20 字数 861 浏览 2 评论 0原文

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

据我了解,我需要:

  1. 创建观察者
望远镜 = ephem.Observer()
Telescope.long = ephem. Degrees('10')
Telescope.lat = ehem. Degrees('60')
望远镜.仰角 = 200
  1. 创建一个主体对象星 这里有麻烦,我只有 (RA,DEC) 星坐标

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

  3. 通过新坐标查找高度

还有一个关于这个库的准确性的问题,它有多准确?我比较了这个程序和 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:

  1. create observer
telescope = ephem.Observer()
telescope.long =  ephem.degrees('10')
telescope.lat = ephem.degrees('60')
telescope.elevation = 200
  1. Create a body Object star
    here is trouble, I have only (RA,DEC) coordinates for star

  2. Calculate position by .calculate(now())

  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

那小子欠揍 2024-12-04 02:06:20

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

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 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

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.

撩起发的微风 2024-12-04 02:06:20
star = ephem.FixedBody(ra=123.123, dec=45.45)

就我而言,固定体创建不起作用,应该是

star = ephem.FixedBody()
star._ra = ephem.hours('10:10:10')
star._dec = ephem.degrees('10:10:10')
star = ephem.FixedBody(ra=123.123, dec=45.45)

in my case fixedbody creation does not work, should be

star = ephem.FixedBody()
star._ra = ephem.hours('10:10:10')
star._dec = ephem.degrees('10:10:10')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文