lodash 中文文档 lodash 中文文档
英文官网 (opens new window)
GitHub (opens new window)
英文官网 (opens new window)
GitHub (opens new window)
  • 简介
  • 数组
  • 集合
  • 函数
  • 语言
  • 数学
  • 数字
  • 对象
  • Seq
  • 字符串
  • 实用函数
  • Properties

Proper image treatments


Build Status

This code is inspired on Zackay & Ofek 2017 papers How to coadd images?(see References below).

It can perform a PSF estimation using Karhunen-Löeve expansion, which is based on Lauer 2002 work.

It can perform the statistical proper coadd of several images.

It can also perform a proper-subtraction of images.

Images need to be aligned and registered, or at least astroalign must be installed.

Contains a nice plot module for PSF visualization (needs matplotlib)

Installation


To install from PyPI

  1. ``` session
  2. $ pip install properimage
  3. ```

Quick usage


PSF estimation


  1. ``` python
  2. >>> from properimage import singleimage as si
  3. >>> with si.SingleImage(frame, smooth_psf=False) as sim:
  4. ...     a_fields, psf_basis = sim.get_variable_psf(inf_loss=0.15)
  5. ```

Proper-subtraction of images


To create a proper-subtraction of images:

  1. ``` python
  2. >>> from properimage.operations import subtract
  3. >>> D, P, Scorr, mask = subtract(ref=ref_path, new=new_path, smooth_psf=False, fitted_psf=True,
  4. ...                             align=False, iterative=False, beta=False, shift=False)
  5. ```

Where D, P, Scorr refer to the images defined by the same name in Zackay & Ofek paper.

For the full documentation refer to readthedocs.

Rerefences


Zackay, B., & Ofek, E. O. (2017). How to Coadd Images. I. Optimal Source Detection and Photometry of Point Sources Using Ensembles of Images. The Astrophysical Journal, 836(2), 187. Arxiv version


Zackay, B., & Ofek, E. O. (2017). How to Coadd Images. II. A Coaddition Image that is Optimal for Any Purpose in the Background-dominated Noise Limit. The Astrophysical Journal, 836(2), 188. Arxiv version

Zackay, B., Ofek, E. O., & Gal-Yam, A. (2016). Proper Image Subtrraction-Optimal Transient Detection, Photometry, and Hypothesis Testing. The Astrophysical Journal, 830(1), 27.

Lauer, T. (2002, December). Deconvolution with a spatially-variant PSF. In Astronomical Data Analysis II (Vol. 4847, pp. 167-174). International Society for Optics and Photonics.
Last Updated: 2023-05-15 20:35:46