Skip to content

LCOGT/auto_stretch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Stretch

Automatically stretch astronomical images in numpy array format. Useful for creating easy-to-see, non-linear jpgs from fits files.

linear (no stretch) arcsin stretch auto-stretch (using this library)
unstretched image arcsin stretch auto-stretched image

Installation

$ pip install auto-stretch

Usage

The stretch function operates on numpy arrays. Example use:

import numpy as np
import astropy
from auto_stretch.stretch import Stretch

image = np.array([[1,2],[3,1]])
stretched_image = Stretch().stretch(image)
print(stretched_image)

# output:
# [[0.13824057 0.51318458]
# [1.         0.13824057]]

About

Stretch fits data for easy visualization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages