This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python-based PSF Homogenization kERnels production

Project Description

Compute an homogenization kernel between two PSFs.

This code is well suited for PSF matching applications in both an astronomical or microscopy context.

It has been developed as part of the ESA Euclid mission and is currently being used for multi-band photometric studies of HST (visible) and Herschel (IR) data.

Paper:http://arxiv.org/abs/1609.02006
Documentation:https://pypher.readthedocs.io

Features

  1. Warp (rotation + resampling) the PSF images (if necessary),
  2. Filter images in Fourier space using a regularized Wiener filter,
  3. Produce a homogenization kernel.

Note: pypher needs the pixel scale information to be present in the FITS files. If not, use the provided addpixscl method to add this missing info.

Warning: This code does not

  • interpolate NaN values (replaced by 0 instead),
  • center PSF images,
  • minimize the kernel size.

Installation

PyPHER works both with Python 2.7 and 3.4 or later and relies on numpy, scipy and astropy libraries.

Option 1: Pip

$ pip install pypher

Option 2: from source

$ git clone https://git.ias.u-psud.fr/aboucaud/pypher.git
$ cd pypher
$ python setup.py install

Basic example

$ pypher psf_a.fits psf_b.fits kernel_a_to_b.fits -r 1.e-5

This will create the desired kernel kernel_a_to_b.fits and a short log kernel_a_to_b.log with information about the processing.

Acknowledging

If you make use of any product of this code in a scientific publication, please consider acknowledging the work by citing the paper as well as the code itself .

Release History

Release History

This version
History Node

0.6.4

History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pypher-0.6.4-py2.py3-none-any.whl (16.1 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 22, 2016
pypher-0.6.4.tar.gz (22.4 kB) Copy SHA256 Checksum SHA256 Source Dec 22, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting