Skip to main content
# FITS Align

Align a sequence of astronomical FITS files based on sources extracted in each image. The aligned files will be geometrically reprojected so all the images are the same size and shape.

It is designed to work exclusively with reduced data from [Las Cumbres Observatory](https://lco.global). FITS data from LCO is [Rice compressed](https://heasarc.gsfc.nasa.gov/fitsio/fpack/) and contains sources extracted using [SEP](https://sep.readthedocs.io/en/v1.0.x/) during our data pipeline processing.

## Installation

Download this repository :
`python setup.py install`


## Example usage

```python
from fits_align.ident import make_transforms
from fits_align.align import affineremap
from glob import glob
from numpy import shape

tmp_dir = "<FULL PATH TO INPUT FILES>"

img_list = sorted(glob(os.path.join(tmp_dir,"*.fz")))
ref_image = img_list[0]
images_to_align = img_list[1:]

identifications = make_transforms(ref_image, images_to_align)

aligned_images = [ref_image]
for id in identifications:
if id.ok:
alignedimg = affineremap(id.ukn.filepath, id.trans, outdir=tmpdir)
aligned_images.append(alignedimg)

```

## About

This is a customised fork of [AliPy by Malte Tewes](http://obswww.unige.ch/~tewes/alipy/). I have removed the dependency on SciPy in favour of pure NumPy (for linear algebra) and Pillow (for image array transforms).

Metadata

Release files for fits-align 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fits-align 0.4.2
File Size Uploaded Provenance Actions
fits_align-0.4.2.tar.gz 25.4 kB Without provenance Details for fits_align-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fits-align 0.4.2
File Interpreter ABI Platform Actions
fits_align-0.4.2-py3.6.egg Legacy Egg format - - Details for fits_align-0.4.2-py3.6.egg

Total release size: 76.1 kB

Release files / fits_align-0.4.2.tar.gz

Download URL fits_align-0.4.2.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
77b139385cf02363c650bf3c8c79312c9cab6ef43ae638ffc93af4a48fff8cd2
BLAKE2b-256 checksum
How to use checksums
1a615c783e21c37e29786a73654d0cc22ec88da1c480d1ad856607e616c54441
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

Release files / fits_align-0.4.2-py3.6.egg

Download URL fits_align-0.4.2-py3.6.egg
Size 50.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
bf21959e5006b80d684fcb28d37541844fee984fac93df5551aee59e3d91fb18
BLAKE2b-256 checksum
How to use checksums
8118952d35eadba092b92abd2659a755f91874108f3eb3c2bae25427173e4c7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.2

Security for fits-align 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page