Skip to main content

No project description provided

Project description

# LCO-AliPy

This is a python package to quickly, automatically, and robustly identify geometrical transforms between optical astronomical images, using only field stars. The images can have different pixel sizes, orientations, pointings and filters.

It is designed to work exclusively with reduced data from [Las Cumbres Observatory]( FITS data from LCO is [Rice compressed]( and contains sources extracted using [SEP]( during our data pipeline processing.

## Installation

Download this repository :
`python install`

## Example usage

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


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

identifications = make_transforms(ref_image, images_to_align)

for id in identifications:
if id.ok:
affineremap(id.ukn.filepath, id.trans, shape=(outputshape[1],outputshape[0]), outdir=tmpdir)

aligned_images = sorted(glob(tmpdir+"/*_affineremap.fits"))

## About

This is a customised fork of [AliPy by Malte Tewes]( I have removed the dependency on SciPy in favour of pure NumPy (for linear algebra) and Pillow (for image array transforms).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fits-align, version 0.4.1
Filename, size File type Python version Upload date Hashes
Filename, size fits_align-0.4.1-py3.6.egg (52.1 kB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size fits_align-0.4.1-py3-none-any.whl (24.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size fits_align-0.4.1.tar.gz (31.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page