Metadata-Version: 2.1
Name: auto-stretch
Version: 0.0.3
Summary: Stretch linear astro data for easier visualization.
Home-page: 
Author: Tim Beccue
Author-email: timothybeccue@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](img/linear.jpg) | ![arcsin stretch](img/arcsin.jpg) | ![auto-stretched image](img/auto-stretch.jpg)

## Installation

`$ pip install auto-stretch`

## Usage

The stretch function operates on numpy arrays. Example use:

```python
import numpy as np
import astropy
from auto_stretch import apply_stretch

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

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