Skip to main content

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)
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 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


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)

Uploaded Source

Built Distribution

auto_stretch-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for auto_stretch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 67516b5001e1fdbe84b926233cb422e02f4e3ae2ed033fc63581522325e6df6d
MD5 89835694b472562d558510c9f5020582
BLAKE2b-256 bff31e636ab2b0d76424c880299e733f6e043e2d5988fc56ff7cb5add183b8fb

See more details on using hashes here.

File details

Details for the file auto_stretch-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_stretch-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1e6a84060048a94fe155639a81721d948aa2eb1ca66e102d6942692a7b6cf407
MD5 7577c958572d541f3d41164518cbb912
BLAKE2b-256 e0ed67f1415f7b40c1327651f7be7be126b2c316c5f69ffe5e88de4a0575ee7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page