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.3

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.3
File Size Uploaded Provenance Actions
fits_align-0.4.3.tar.gz 24.4 kB Without provenance Details for fits_align-0.4.3.tar.gz

Built distribution (wheel)

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

Total release size: 72.2 kB

Release files / fits_align-0.4.3.tar.gz

Download URL fits_align-0.4.3.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8d7176b1d7ed3d41805d9c4a27b91d91a338b7aa128910bbfd35fc8bcbce79
BLAKE2b-256 checksum
How to use checksums
22f3fb6237f3b07401a602cb5e086ac8afefe8a186ab4d8482d3ad0b0e2d2807
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.3-py3.6.egg

Download URL fits_align-0.4.3-py3.6.egg
Size 47.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
2fae8c22faa5531f255fc02205b8001f355ae9da84ab50c5449fdc5457d6a229
BLAKE2b-256 checksum
How to use checksums
7be6d8b5e5baffd2a58df186f24af7c2fea96a77c8b3bd70feec7983d3b39967
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.3

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