Stretch linear astro data for easier visualization.
Project description
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) |
---|---|---|
Installation
$ pip install auto-stretch
Usage
The stretch function operates on numpy arrays. Example use:
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]]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
auto_stretch-0.0.3.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file auto_stretch-0.0.3.tar.gz
.
File metadata
- Download URL: auto_stretch-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67516b5001e1fdbe84b926233cb422e02f4e3ae2ed033fc63581522325e6df6d |
|
MD5 | 89835694b472562d558510c9f5020582 |
|
BLAKE2b-256 | bff31e636ab2b0d76424c880299e733f6e043e2d5988fc56ff7cb5add183b8fb |
File details
Details for the file auto_stretch-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: auto_stretch-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e6a84060048a94fe155639a81721d948aa2eb1ca66e102d6942692a7b6cf407 |
|
MD5 | 7577c958572d541f3d41164518cbb912 |
|
BLAKE2b-256 | e0ed67f1415f7b40c1327651f7be7be126b2c316c5f69ffe5e88de4a0575ee7f |