{"id":18843330,"url":"https://github.com/quatrope/astroalign","last_synced_at":"2025-10-06T02:23:55.149Z","repository":{"id":43856968,"uuid":"49095023","full_name":"quatrope/astroalign","owner":"quatrope","description":"A tool to align astronomical images based on asterism matching","archived":false,"fork":false,"pushed_at":"2025-09-24T18:22:23.000Z","size":38307,"stargazers_count":153,"open_issues_count":10,"forks_count":45,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-09-30T03:06:42.568Z","etag":null,"topics":["alignment","asterism-matching","astronomy","registration","stellar-astronomical-images","transformations"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quatrope.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-01-05T21:52:45.000Z","updated_at":"2025-09-24T18:22:27.000Z","dependencies_parsed_at":"2023-10-15T00:02:25.171Z","dependency_job_id":"e8b3e6c4-ae1c-4f12-a9d2-6afd23a4178f","html_url":"https://github.com/quatrope/astroalign","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/quatrope/astroalign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quatrope%2Fastroalign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quatrope%2Fastroalign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quatrope%2Fastroalign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quatrope%2Fastroalign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quatrope","download_url":"https://codeload.github.com/quatrope/astroalign/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quatrope%2Fastroalign/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548018,"owners_count":26004818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alignment","asterism-matching","astronomy","registration","stellar-astronomical-images","transformations"],"created_at":"2024-11-08T02:57:31.463Z","updated_at":"2025-10-06T02:23:55.114Z","avatar_url":"https://github.com/quatrope.png","language":"Python","readme":"![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\u003e\u003e\u003e import astroalign as aa\n\u003e\u003e\u003e 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\u003e\u003e\u003e 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., \u0026 Sanchez, B.\n    Astronomy \u0026 Computing, Volume 32, July 2020, 100384.\n\n***\n\n\u003cmartinberoiz@gmail.com\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquatrope%2Fastroalign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquatrope%2Fastroalign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquatrope%2Fastroalign/lists"}