pypher

PSF Homogenization kERnels

https://github.com/aboucaud/pypher

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org, zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

PSF Homogenization kERnels

Basic Info
Statistics
  • Stars: 54
  • Watchers: 3
  • Forks: 11
  • Open Issues: 1
  • Releases: 5
Created over 10 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License Citation

README.rst

====================================================
PyPHER - Python-based PSF Homogenization kERnels
====================================================

|pypi| |docs| |license| |doi| |actions|

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.X and relies on `numpy `_, `scipy `_ and `astropy `_ libraries.

Option 1: `Pip `_
------------------------------------------------------

.. code:: bash

    pip install pypher

Option 2: from `source `_
-------------------------------------------------------------

.. code:: bash

    git clone https://github.com/aboucaud/pypher
    cd pypher
    python setup.py install

Option 3: from `conda-forge `_
-------------------------------------------------------------------------------

.. code:: bash

    conda install -c conda-forge pypher

Basic example
=============

.. code:: bash

    $ 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.


.. |pypi| image:: https://img.shields.io/pypi/v/pypher.svg
    :alt: Latest Version
    :target: https://pypi.python.org/pypi/pypher

.. |docs| image:: https://readthedocs.org/projects/pypher/badge/?version=latest
    :alt: Documentation Status
    :target: https://pypher.readthedocs.org/en/latest/?badge=latest

.. |actions| image:: https://github.com/aboucaud/pypher/actions/workflows/pytest.yml/badge.svg
    :alt: GitHub CI
    :target: https://github.com/aboucaud/pypher/actions/workflows/pytest.yml

.. |license| image:: https://img.shields.io/badge/license-BSD-blue.svg?style=flat
    :alt: License type
    :target: https://github.com/aboucaud/pypher/blob/master/LICENSE

.. |doi| image:: https://zenodo.org/badge/21241/aboucaud/pypher.svg
    :alt: DOI number
    :target: https://zenodo.org/badge/latestdoi/21241/aboucaud/pypher

.. |arxiv| image:: http://img.shields.io/badge/arXiv-1609.02006-yellow.svg?style=flat
     :alt: arXiv paper
     :target: https://arxiv.org/abs/1609.02006

Owner

  • Name: Alexandre Boucaud
  • Login: aboucaud
  • Kind: user
  • Location: Paris, France
  • Company: Laboratoire APC, CNRS/IN2P3

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Boucaud"
  given-names: "Alexandre"
  orcid: "https://orcid.org/0000-0001-7387-2633"
title: "PyPHER: PSF Homogenization kERnels"
version: 0.6.2
license: BSD-3-Clause
doi: 10.5281/zenodo.61392
date-released: 2016-09-02
repository-code: "https://github.com/aboucaud/pypher"
url: "https://pypher.readthedocs.io/"
preferred-citation:
  type: article
  authors:
  - family-names: "Boucaud"
    given-names: "Alexandre"
    orcid: "https://orcid.org/0000-0001-7387-2633"
  - family-names: "Bocchio"
    given-names: "Marco"
  - family-names: "Abergel"
    given-names: "Alain"
  - family-names: "Orieux"
    given-names: "François"
  - family-names: "Dole"
    given-names: "Hervé"
  - family-names: "Hadj-Youcef"
    given-names: "Amine"
    orcid: "https://orcid.org/0000-0001-9313-5470"
  doi: "10.1051/0004-6361/201629080"
  journal: "Astronomy and Astrophysics"
  start: "A63"
  title: "Convolution kernels for multi-wavelength imaging"
  volume: 596
  year: 2016

GitHub Events

Total
  • Create event: 2
  • Release event: 1
  • Issues event: 1
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 2
  • Push event: 3
  • Pull request event: 2
Last Year
  • Create event: 2
  • Release event: 1
  • Issues event: 1
  • Watch event: 3
  • Delete event: 1
  • Issue comment event: 2
  • Push event: 3
  • Pull request event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 378 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 8
  • Total maintainers: 1
pypi.org: pypher

Python-based PSF Homogenization kERnels production

  • Versions: 8
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 378 Last month
Rankings
Dependent repos count: 8.9%
Dependent packages count: 10.1%
Average: 10.9%
Downloads: 13.7%
Maintainers (1)
Last synced: 10 months ago

Dependencies

docs/rtd_requirement.txt pypi
  • Pygments >=2.0.2
  • sphinx >=1.3.5
  • sphinx-rtd-theme >=0.1.9
requirements.txt pypi
  • astropy >=2.0
  • numpy >=1.7.2
  • scipy >=0.9.0
setup.py pypi
  • astropy >=2.0
  • numpy >=1.7.2
  • scipy >=0.9
.github/workflows/publish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/pytest.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite