pypher


Namepypher JSON
Version 0.7.1 PyPI version JSON
download
home_pagehttp://pypher.readthedocs.org/en/latest/
SummaryPython-based PSF Homogenization kERnels production
upload_time2022-06-01 10:33:16
maintainer
docs_urlNone
authorAlexandre Boucaud
requires_python
licenseNew BSD
keywords
VCS
bugtrack_url
requirements numpy scipy astropy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ====================================================
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 <http://www.cosmos.esa.int/web/euclid>`_ mission and is currently being used for multi-band photometric studies of `HST <https://www.spacetelescope.org/>`_ (visible) and `Herschel <http://www.cosmos.esa.int/web/herschel/home>`_ (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 above and relies on `numpy <http://www.numpy.org/>`_, `scipy <http://www.scipy.org/>`_ and `astropy <http://www.astropy.org/>`_ libraries.

Option 1: `Pip <https://pypi.python.org/pypi/pypher>`_
------------------------------------------------------

.. code:: bash

    pip install pypher

Option 2: from `source <https://github.com/aboucaud/pypher>`_
-------------------------------------------------------------

.. code:: bash

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

Option 3: from `conda-forge <https://github.com/conda-forge/pypher-feedstock>`_
-------------------------------------------------------------------------------

.. 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
    :scale: 100%
    :target: https://pypi.python.org/pypi/pypher

.. |docs| image:: https://readthedocs.org/projects/pypher/badge/?version=latest
    :alt: Documentation Status
    :scale: 100%
    :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
    :scale: 100%
    :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
    :scale: 100%
    :target: https://github.com/aboucaud/pypher/blob/master/LICENSE

.. |doi| image:: https://zenodo.org/badge/21241/aboucaud/pypher.svg
    :alt: DOI number
    :scale: 100%
    :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
     :scale: 100%
     :target: https://arxiv.org/abs/1609.02006
            

Raw data

            {
    "_id": null,
    "home_page": "http://pypher.readthedocs.org/en/latest/",
    "name": "pypher",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Alexandre Boucaud",
    "author_email": "alexandre.boucaud@apc.in2p3.fr",
    "download_url": "https://files.pythonhosted.org/packages/7a/23/b24d50376f009616d4429e58456d534b845292d9a705e6629ed90fe93e3b/pypher-0.7.1.tar.gz",
    "platform": null,
    "description": "====================================================\nPyPHER - Python-based PSF Homogenization kERnels\n====================================================\n\n|pypi| |docs| |license| |doi| |actions|\n\nCompute an homogenization kernel between two PSFs.\n\nThis code is well suited for PSF matching applications in both an astronomical or microscopy context.\n\nIt has been developed as part of the ESA `Euclid <http://www.cosmos.esa.int/web/euclid>`_ mission and is currently being used for multi-band photometric studies of `HST <https://www.spacetelescope.org/>`_ (visible) and `Herschel <http://www.cosmos.esa.int/web/herschel/home>`_ (IR) data.\n\n:Paper: http://arxiv.org/abs/1609.02006\n:Documentation: https://pypher.readthedocs.io\n\nFeatures\n========\n\n1. **Warp** (rotation + resampling) the PSF images (if necessary),\n2. **Filter** images in Fourier space using a regularized Wiener filter,\n3. **Produce** a homogenization kernel.\n\n**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.\n\n**Warning:** This code **does not**\n\n    * interpolate NaN values (replaced by 0 instead),\n    * center PSF images,\n    * minimize the kernel size.\n\n\nInstallation\n============\n\nPyPHER works both with Python 2.7 and 3.4 or above and relies on `numpy <http://www.numpy.org/>`_, `scipy <http://www.scipy.org/>`_ and `astropy <http://www.astropy.org/>`_ libraries.\n\nOption 1: `Pip <https://pypi.python.org/pypi/pypher>`_\n------------------------------------------------------\n\n.. code:: bash\n\n    pip install pypher\n\nOption 2: from `source <https://github.com/aboucaud/pypher>`_\n-------------------------------------------------------------\n\n.. code:: bash\n\n    git clone https://github.com/aboucaud/pypher\n    cd pypher\n    python setup.py install\n\nOption 3: from `conda-forge <https://github.com/conda-forge/pypher-feedstock>`_\n-------------------------------------------------------------------------------\n\n.. code:: bash\n\n    conda install -c conda-forge pypher\n\nBasic example\n=============\n\n.. code:: bash\n\n    $ pypher psf_a.fits psf_b.fits kernel_a_to_b.fits -r 1.e-5\n\nThis will create the desired kernel ``kernel_a_to_b.fits`` and a short\nlog ``kernel_a_to_b.log`` with information about the processing.\n\n\nAcknowledging\n=============\n\nIf you make use of any product of this code in a scientific publication,\nplease consider acknowledging the work by citing the paper using the BibTeX \ninformation in the ``Cite this repository`` section at the top right of the page.\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/pypher.svg\n    :alt: Latest Version\n    :scale: 100%\n    :target: https://pypi.python.org/pypi/pypher\n\n.. |docs| image:: https://readthedocs.org/projects/pypher/badge/?version=latest\n    :alt: Documentation Status\n    :scale: 100%\n    :target: https://pypher.readthedocs.org/en/latest/?badge=latest\n\n.. |actions| image:: https://github.com/aboucaud/pypher/actions/workflows/pytest.yml/badge.svg\n    :alt: GitHub CI\n    :scale: 100%\n    :target: https://github.com/aboucaud/pypher/actions/workflows/pytest.yml\n\n.. |license| image:: https://img.shields.io/badge/license-BSD-blue.svg?style=flat\n    :alt: License type\n    :scale: 100%\n    :target: https://github.com/aboucaud/pypher/blob/master/LICENSE\n\n.. |doi| image:: https://zenodo.org/badge/21241/aboucaud/pypher.svg\n    :alt: DOI number\n    :scale: 100%\n    :target: https://zenodo.org/badge/latestdoi/21241/aboucaud/pypher\n\n.. |arxiv| image:: http://img.shields.io/badge/arXiv-1609.02006-yellow.svg?style=flat\n     :alt: arXiv paper\n     :scale: 100%\n     :target: https://arxiv.org/abs/1609.02006",
    "bugtrack_url": null,
    "license": "New BSD",
    "summary": "Python-based PSF Homogenization kERnels production",
    "version": "0.7.1",
    "project_urls": {
        "Download": "https://github.com/aboucaud/pypher",
        "Homepage": "http://pypher.readthedocs.org/en/latest/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0de69c3c88bafa8733e342ae5256f065067c486910fd0166e2d7324bc66c45c4",
                "md5": "3f1e66d51634fb016db3a8a40058c2b6",
                "sha256": "b60a1b3353af1904cfe5b93058d3b62478764cba406f8e3c28e5d73edd5721d2"
            },
            "downloads": -1,
            "filename": "pypher-0.7.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3f1e66d51634fb016db3a8a40058c2b6",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 14789,
            "upload_time": "2022-06-01T10:33:28",
            "upload_time_iso_8601": "2022-06-01T10:33:28.058863Z",
            "url": "https://files.pythonhosted.org/packages/0d/e6/9c3c88bafa8733e342ae5256f065067c486910fd0166e2d7324bc66c45c4/pypher-0.7.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a23b24d50376f009616d4429e58456d534b845292d9a705e6629ed90fe93e3b",
                "md5": "0bdf8bf0950067b27d099a110d463d6f",
                "sha256": "fc11caaf6cf15b4b31ef496359b2fb8aa9faf8a9b3da6ceca6fafbff78e1a9f4"
            },
            "downloads": -1,
            "filename": "pypher-0.7.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0bdf8bf0950067b27d099a110d463d6f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23988,
            "upload_time": "2022-06-01T10:33:16",
            "upload_time_iso_8601": "2022-06-01T10:33:16.299276Z",
            "url": "https://files.pythonhosted.org/packages/7a/23/b24d50376f009616d4429e58456d534b845292d9a705e6629ed90fe93e3b/pypher-0.7.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-06-01 10:33:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aboucaud",
    "github_project": "pypher",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.7.2"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    ">=",
                    "0.9.0"
                ]
            ]
        },
        {
            "name": "astropy",
            "specs": [
                [
                    ">=",
                    "2.0"
                ]
            ]
        }
    ],
    "lcname": "pypher"
}
        
Elapsed time: 0.19398s