基于python的psf同质化内核生产
pypher的Python项目详细描述
计算两个psf之间的均匀化核。
此代码非常适合天文或显微镜环境下的psf匹配应用。
它是欧空局Euclid任务的一部分,目前正用于HST(可见光)和Herschel(红外)数据的多波段光度研究。
Paper: | http://arxiv.org/abs/1609.02006 |
---|---|
Documentation: | https://pypher.readthedocs.io |
功能
- warp(旋转+重采样)PSF图像(如果需要),
- filter使用正则wiener滤波器的fourier空间中的图像,
- 产生同质化内核。
注意:pypher需要在fits文件中显示像素比例信息。如果没有,请使用提供的addpixscl方法添加此缺少的信息。
警告:此代码不
- interpolate NaN values (replaced by 0 instead),
- center PSF images,
- minimize the kernel size.
安装
pypher可以与python 2.7和3.4或更高版本一起使用,并且依赖于numpy、scipy和astropy库。
选项1:Pip
$ pip install pypher
选项2:从source
$ git clone https://git.ias.u-psud.fr/aboucaud/pypher.git
$ cd pypher
$ python setup.py install
基本示例
$ pypher psf_a.fits psf_b.fits kernel_a_to_b.fits -r 1.e-5
这将创建所需的内核kernel_a_to_b.fits,并 用有关处理的信息记录kernel_a_to_b.log。