astroalign


Nameastroalign JSON
Version 2.6.1 PyPI version JSON
download
home_pageNone
SummaryAstrometric Alignment of Images
upload_time2024-11-15 01:21:49
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2016-2019 Martin Beroiz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords astronomy registration alignment asterism-matching stellar-astronomical-images
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![logo](docs/images/logo-inline-dark-light.png)

***

[![QuatroPe](https://img.shields.io/badge/QuatroPe-Applications-1c5896)](https://quatrope.github.io/)
[![unit tests](https://github.com/quatrope/astroalign/actions/workflows/aa-ci.yml/badge.svg?branch=master)](https://github.com/quatrope/astroalign/actions/workflows/aa-ci.yml)
[![Coverage](https://codecov.io/github/quatrope/astroalign/coverage.svg?branch=master)](https://codecov.io/github/quatrope/astroalign)
[![Documentation Status](https://readthedocs.org/projects/astroalign/badge/?version=latest)](http://astroalign.readthedocs.org/en/latest/?badge=latest)
[![PyPI](https://img.shields.io/pypi/v/astroalign)](https://pypi.org/project/astroalign/)
![PyPI - Downloads](https://img.shields.io/pypi/dm/astroalign)
[![ascl:1906.001](https://img.shields.io/badge/ascl-1906.001-blue.svg?colorB=262255)](http://ascl.net/1906.001)


**ASTROALIGN** is a python module that will try to align two stellar astronomical images, especially when there is no WCS information available.

It does so by finding similar 3-point asterisms (triangles) in both images and deducing the affine transformation between them.

Generic registration routines try to match feature points, using corner
detection routines to make the point correspondence.
These generally fail for stellar astronomical images, since stars have very
little stable structure and so, in general, indistinguishable from each other.
Asterism matching is more robust, and closer to the human way of matching stellar images.

Astroalign can match images of very different field of view, point-spread function, seeing and atmospheric conditions.

It may not work, or work with special care, on images of extended objects with few point-like sources or in very crowded fields.

You can find a Jupyter notebook example with the main features at [http://quatrope.github.io/astroalign/](http://quatrope.github.io/astroalign/).

**Full documentation:** https://astroalign.readthedocs.io/

# Installation

Install from PyPI

```bash
$ pip install astroalign
```

## Running Tests

```bash
python tests/test_align.py
```

or using pytest:

```bash
pytest -v
```

# Usage example

```
>>> import astroalign as aa
>>> aligned_image, footprint = aa.register(source_image, target_image)
```

In this example `source_image` will be interpolated by a transformation to coincide pixel to pixel with `target_image` and stored in `aligned_image`.

If we are only interested in knowing the transformation and the correspondence of control points in both images, use `find_transform` will return the transformation in a [Scikit-Image](https://scikit-image.org/) `SimilarityTransform` object and a list of stars in source with the corresponding stars in target.

```
>>> transf, (s_list, t_list) = aa.find_transform(source, target)
```

`source` and `target` can each either be the numpy array of the image (grayscale or color),
or an iterable of (x, y) pairs of star positions on the image.

The returned `transf` object is a scikit-image [`SimilarityTranform`](http://scikit-image.org/docs/dev/api/skimage.transform.html#skimage.transform.SimilarityTransform) object that contains the transformation matrix along with the scale, rotation and translation parameters.

`s_list` and `t_list` are numpy arrays of (x, y) point correspondence between `source` and `target`. `transf` applied to `s_list` will approximately render `t_list`.

# Related Software

There are other related software that may offer similar functionality as astroalign.
This list is not exhaustive and may be others.

* [astrometry.net](https://github.com/dstndstn/astrometry.net)
* [reproject](https://github.com/astropy/reproject)
* [Watney Astrometry Engine](https://github.com/Jusas/WatneyAstrometry)
* [Stellar Solver](https://github.com/rlancaste/stellarsolver)
* [THRASTRO](https://github.com/THRASTRO/astrometrylib)
* [Montage](https://github.com/Caltech-IPAC/Montage)
* [Aafitrans](https://github.com/prajwel/aafitrans)
* [astrometry](https://github.com/neuromorphicsystems/astrometry)

# Citation

If you use astroalign in a scientific publication, we would appreciate citations to the following [paper](https://www.sciencedirect.com/science/article/pii/S221313372030038X):

    Astroalign: A Python module for astronomical image registration.
    Beroiz, M., Cabral, J. B., & Sanchez, B.
    Astronomy & Computing, Volume 32, July 2020, 100384.

***

<martinberoiz@gmail.com>

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "astroalign",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Martin Beroiz <martinberoiz@gmail.com>",
    "keywords": "astronomy, registration, alignment, asterism-matching, stellar-astronomical-images",
    "author": null,
    "author_email": "Martin Beroiz <martinberoiz@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/bd/00/92b72820029a1b64d2a5f752aefdb482bd624122693c8f3e8335705e69b2/astroalign-2.6.1.tar.gz",
    "platform": null,
    "description": "![logo](docs/images/logo-inline-dark-light.png)\n\n***\n\n[![QuatroPe](https://img.shields.io/badge/QuatroPe-Applications-1c5896)](https://quatrope.github.io/)\n[![unit tests](https://github.com/quatrope/astroalign/actions/workflows/aa-ci.yml/badge.svg?branch=master)](https://github.com/quatrope/astroalign/actions/workflows/aa-ci.yml)\n[![Coverage](https://codecov.io/github/quatrope/astroalign/coverage.svg?branch=master)](https://codecov.io/github/quatrope/astroalign)\n[![Documentation Status](https://readthedocs.org/projects/astroalign/badge/?version=latest)](http://astroalign.readthedocs.org/en/latest/?badge=latest)\n[![PyPI](https://img.shields.io/pypi/v/astroalign)](https://pypi.org/project/astroalign/)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/astroalign)\n[![ascl:1906.001](https://img.shields.io/badge/ascl-1906.001-blue.svg?colorB=262255)](http://ascl.net/1906.001)\n\n\n**ASTROALIGN** is a python module that will try to align two stellar astronomical images, especially when there is no WCS information available.\n\nIt does so by finding similar 3-point asterisms (triangles) in both images and deducing the affine transformation between them.\n\nGeneric registration routines try to match feature points, using corner\ndetection routines to make the point correspondence.\nThese generally fail for stellar astronomical images, since stars have very\nlittle stable structure and so, in general, indistinguishable from each other.\nAsterism matching is more robust, and closer to the human way of matching stellar images.\n\nAstroalign can match images of very different field of view, point-spread function, seeing and atmospheric conditions.\n\nIt may not work, or work with special care, on images of extended objects with few point-like sources or in very crowded fields.\n\nYou can find a Jupyter notebook example with the main features at [http://quatrope.github.io/astroalign/](http://quatrope.github.io/astroalign/).\n\n**Full documentation:** https://astroalign.readthedocs.io/\n\n# Installation\n\nInstall from PyPI\n\n```bash\n$ pip install astroalign\n```\n\n## Running Tests\n\n```bash\npython tests/test_align.py\n```\n\nor using pytest:\n\n```bash\npytest -v\n```\n\n# Usage example\n\n```\n>>> import astroalign as aa\n>>> aligned_image, footprint = aa.register(source_image, target_image)\n```\n\nIn this example `source_image` will be interpolated by a transformation to coincide pixel to pixel with `target_image` and stored in `aligned_image`.\n\nIf we are only interested in knowing the transformation and the correspondence of control points in both images, use `find_transform` will return the transformation in a [Scikit-Image](https://scikit-image.org/) `SimilarityTransform` object and a list of stars in source with the corresponding stars in target.\n\n```\n>>> transf, (s_list, t_list) = aa.find_transform(source, target)\n```\n\n`source` and `target` can each either be the numpy array of the image (grayscale or color),\nor an iterable of (x, y) pairs of star positions on the image.\n\nThe returned `transf` object is a scikit-image [`SimilarityTranform`](http://scikit-image.org/docs/dev/api/skimage.transform.html#skimage.transform.SimilarityTransform) object that contains the transformation matrix along with the scale, rotation and translation parameters.\n\n`s_list` and `t_list` are numpy arrays of (x, y) point correspondence between `source` and `target`. `transf` applied to `s_list` will approximately render `t_list`.\n\n# Related Software\n\nThere are other related software that may offer similar functionality as astroalign.\nThis list is not exhaustive and may be others.\n\n* [astrometry.net](https://github.com/dstndstn/astrometry.net)\n* [reproject](https://github.com/astropy/reproject)\n* [Watney Astrometry Engine](https://github.com/Jusas/WatneyAstrometry)\n* [Stellar Solver](https://github.com/rlancaste/stellarsolver)\n* [THRASTRO](https://github.com/THRASTRO/astrometrylib)\n* [Montage](https://github.com/Caltech-IPAC/Montage)\n* [Aafitrans](https://github.com/prajwel/aafitrans)\n* [astrometry](https://github.com/neuromorphicsystems/astrometry)\n\n# Citation\n\nIf you use astroalign in a scientific publication, we would appreciate citations to the following [paper](https://www.sciencedirect.com/science/article/pii/S221313372030038X):\n\n    Astroalign: A Python module for astronomical image registration.\n    Beroiz, M., Cabral, J. B., & Sanchez, B.\n    Astronomy & Computing, Volume 32, July 2020, 100384.\n\n***\n\n<martinberoiz@gmail.com>\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2016-2019 Martin Beroiz  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Astrometric Alignment of Images",
    "version": "2.6.1",
    "project_urls": {
        "documentation": "https://astroalign.readthedocs.io/",
        "homepage": "https://astroalign.quatrope.org",
        "source": "https://github.com/quatrope/astroalign"
    },
    "split_keywords": [
        "astronomy",
        " registration",
        " alignment",
        " asterism-matching",
        " stellar-astronomical-images"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c42263c6ace72bf1384780469a2c953fe2320cbeae2db094dd87d35a13772b65",
                "md5": "9b945980f2a350392307c71625a3ae2b",
                "sha256": "cfb1555a43b5c6d265956c8a24be5996d3fc2ee684fd58885fb18dd989103cce"
            },
            "downloads": -1,
            "filename": "astroalign-2.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b945980f2a350392307c71625a3ae2b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 11625,
            "upload_time": "2024-11-15T01:21:47",
            "upload_time_iso_8601": "2024-11-15T01:21:47.242592Z",
            "url": "https://files.pythonhosted.org/packages/c4/22/63c6ace72bf1384780469a2c953fe2320cbeae2db094dd87d35a13772b65/astroalign-2.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd0092b72820029a1b64d2a5f752aefdb482bd624122693c8f3e8335705e69b2",
                "md5": "1d0ea792dc56bf523c4fc3c0ae9c7744",
                "sha256": "5b5b22127395c9b265df3afe9810f083bae63aaefb4bce8abe53ca211ef8b495"
            },
            "downloads": -1,
            "filename": "astroalign-2.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1d0ea792dc56bf523c4fc3c0ae9c7744",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 95758,
            "upload_time": "2024-11-15T01:21:49",
            "upload_time_iso_8601": "2024-11-15T01:21:49.047398Z",
            "url": "https://files.pythonhosted.org/packages/bd/00/92b72820029a1b64d2a5f752aefdb482bd624122693c8f3e8335705e69b2/astroalign-2.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-15 01:21:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "quatrope",
    "github_project": "astroalign",
    "github_fetch_exception": true,
    "lcname": "astroalign"
}
        
Elapsed time: 0.35690s