Skip to main content

Proper Astronomic Image Analysis

Project description

Proper image treatments

QuatroPe Build Status Documentation Status codecov Python 3.8 License ascl:1904.025 Code style: black

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

$ pip install properimage

Quick usage

PSF estimation

>>> from properimage import singleimage as si
>>> with si.SingleImage(frame, smooth_psf=False) as sim:
...     a_fields, psf_basis = sim.get_variable_psf(inf_loss=0.15)

Proper-subtraction of images

To create a proper-subtraction of images:

>>> from properimage import propersubtract as ps
>>> D, P, Scorr, mask = ps.subtract(ref=ref_path, new=new_path, smooth_psf=False, fitted_psf=True,
...                             align=False, iterative=False, beta=False, shift=False)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

properimage-0.7.1.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

properimage-0.7.1-py3-none-any.whl (121.0 kB view details)

Uploaded Python 3

File details

Details for the file properimage-0.7.1.tar.gz.

File metadata

  • Download URL: properimage-0.7.1.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for properimage-0.7.1.tar.gz
Algorithm Hash digest
SHA256 3fc21d884fa052d597ba148881aa1788b7ae0c7963a9aaa08b27eeecb8b3dcbe
MD5 24c216bc08f216a89876fb3b8d231983
BLAKE2b-256 3d29309ac4997f48cd0bed3d30c3492712ddf44bdf29ff48480f83a0755d98a3

See more details on using hashes here.

File details

Details for the file properimage-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: properimage-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 121.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.10

File hashes

Hashes for properimage-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51979aeb532618eafddbadd3d0b834460334115bc1dabed1042a81ef98339950
MD5 f53a6e60f0eab231e90f8e2e7bd513c5
BLAKE2b-256 d8ce32d1065897ecd0574da9b4011b4ec5f5ef9c3377718838fdbcd2a33052b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page