Photometry in Python

春节稍稍调研了一下 Python 下做测光的包,记录在此。

pyraf

PyRAF is a command language for running IRAF tasks that is based on the Python scripting language.

著名的 iraf 的 python 包装。这有一个测光的例子

Photutils

Photutils is an in-development affiliated package of Astropy to provide tools for detecting and performing photometry of astronomical sources.

Astropy 包的测光组件,在里面还能遇到 daofind、daophoto 等熟人。目前发展势头不错,孔径测光已经很成熟了,正在设法提速,PSF 测光还在测试中。鉴于 Astropy 已经成为天文 Python 界最受注意的项目,这个包的前途应该是很光明的。

SEP

Python and C library for source extraction and photometry

SEP 的名字来源很有意思,

"... [it's] an SEP: Somebody Else's Problem."
"Oh, good. I can relax then."

SEP 是用 C 实现的,自带 python 包装,速度比 photutils 快不少。所以 photutils 那边也在考虑与 SEP 的作者一起维护一个 C 的底层测光库,讨论见此

Ian's Astro-Python Code

Aperture and simple PSF-fitting photometry

PythonPhot

Some of the IDL AstroLib photometry algorithms translated to Python

总结

Python 下经常遇到这个问题,这么多包,究竟用哪个好?我对测光并不熟悉,以下意见仅供参考。
如果你对 iraf 熟悉,就用 pyraf 吧。如果不是,推荐 photutils,文档齐全,又傍着 astropy 这颗大树,会过得比较舒服。速度比较有要求的话,可以试试 SEP,不过看上去 photutils 很快会赶上来的。

标签: python, 测光

赞 (9)

添加新评论