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:
- Documentation:
Features
Warp (rotation + resampling) the PSF images (if necessary),
Filter images in Fourier space using a regularized Wiener filter,
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.X and relies on numpy, scipy and astropy libraries.
Option 1: Pip
pip install pypher
Option 2: from source
git clone https://github.com/aboucaud/pypher
cd pypher
python setup.py install
Option 3: from conda-forge
conda install -c conda-forge pypher
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 using the BibTeX information in the Cite this repository section at the top right of the page.
Release files for pypher 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypher-0.7.3.tar.gz | 23.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypher-0.7.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 38.4 kB
Release files / pypher-0.7.3.tar.gz
| Download URL | pypher-0.7.3.tar.gz |
|---|---|
| Size | 23.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
988468b17490f03332832d8641240aaf4016b4cc8fcac7ebdb85166e5827e375
|
|
BLAKE2b-256 checksum How to use checksums |
af25a5e28da16f8271de84cb34b10300e42081b8e64276f3f4ba2d8fb8e6a73a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|
Release files / pypher-0.7.3-py2.py3-none-any.whl
| Download URL | pypher-0.7.3-py2.py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
24345ea406a07c7de173748ab31a6f0a068d8f794042c097e0328882d346a782
|
|
BLAKE2b-256 checksum How to use checksums |
dbbed654f58baac6320906c15441c70d13cd1750e89c978e67dbd00f70b48db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.4
|