python-only astrometric plate solving
Project description
twirl
twirl is a python-only astrometric plate solving package. It is suited for cases where the RA-DEC coordinate of the image center is known and a WCS needs to be computed easily.
twirl is based on the algorithm of Lang et al. 2009 (astrometry.net) and go through these steps:
- detection of stars in the image if not provided
- catalog query using image known center
- 4-points asterisms building and matching following Lang et al. 2009
- image recombination and wcs fit (astropy.wcs)
Example
import twirl
stars = twirl.find_peaks(data)[0:15]
radec = twirl.gaia_radec(target, shape, pixel)
wcs, aligned = twirl.match_wcs(stars, radec, return_aligned=True)
More examples are provided in docs/notebooks
Installation
For now twirl needs to be installed locally (soon pip installable)
git clone https://github.com/lgrcia/twirl.git
python3 -m pip install -e twirl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twirl-0.0.1.tar.gz
(64.0 kB
view hashes)
Built Distribution
twirl-0.0.1-py3-none-any.whl
(1.8 kB
view hashes)