Python script that converts astronomical FITS images in color/grayscale images.
Project description
Trilogy
Python script that converts astronomical FITS images into color/grayscale images. Trilogy was originally written in Python 2.
Author: Dan Coe
Modified by Renan Alves de Oliveira
Installation
- From PyPi:
pip install trilogy
- From Github:
git clone https://github.com/oliveirara/trilogy.git
cd trilogy
python setup.py build
python setup.py install
Usage
- Command line:
trilogy-cl -params
- With input file (e.g. see *.in in ~/examples/):
trilogy-cl single.in
- With input file and command line parameters:
trilogy-cl single.in -deletefilters 0 -showwith PIL -sampledx 300
- Check notebooks in
~/notebooksfor examples.
Requirements
Pillowastropynumpyscipy
Parameters and default values
"indir" = '' # Input directory.
"outname" = None # Output filename.
"outdir" = '' # Output directory.
"saturate" = None # Determined automatically if None: image data value allowed to saturate.
"satpercent" = 0.001 # Percentage of pixels which will be saturated.
"colorsatfac" = 1 # \> 1 to boost color saturation.
"noise" = None # Noise luminosity is determined automatically if None.
"noiselum" = 0.15 # Noise luminosity for single channel (between 0 - 1).
"noiselums" = {} # Noise luminosity for each channel (between 0 - 1).
"noisesig" = 1 # Data noise level output to noiselum: measured sigma above the measured mean.
"noisesig0": 2 # Data noise level: measured sigma above the measured mean.
"correctbias"= 0 # Measure data noise mean (otherwise assume = 0).
"combine" = 'average' # "average" or "sum" combine images.
"invert" = 0 # Invert luminosity (black on white).
"scaling" = None # Determined automatically if None: image scaling.
"bscale" = 1 # Multiply all images by this value.
"bzero" = 0 # Add this value to all images.
"samplesize" = 1000 # Determine number of levels.
"stampsize" = 1000 # Making final color image (memory issue).
"sampledx" = 0 # Offset in x direction.
"sampledy" = 0 # Offset in y direction.
"show" = 0 # Show final image at the end.
"showstamps" = 0 # Show image config stamps.
"showwith" = 'open' # Command to display images.
"thumbnail" = None # Show thumbnail.
"legend" = 0 # Adds legend to top-left corner indicating which filters were used (only for RGB).
"maxstampsize" = 6000 # Memory fix.
"testfirst" = 1 # Test some options before making the final image.
"deletetests" = 0 # Delete testing files.
"deletefilters" = 1 # Delete filter files.
Resources
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
trilogy-0.0.1.tar.gz
(26.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
trilogy-0.0.1-py3-none-any.whl
(25.6 kB
view details)
File details
Details for the file trilogy-0.0.1.tar.gz.
File metadata
- Download URL: trilogy-0.0.1.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22992510f090b239f7a965d679909d45b5b9fee82c0bf997eaf6bf9ba066962d
|
|
| MD5 |
7b1288b604debbc16abc73fc2a744f33
|
|
| BLAKE2b-256 |
d30f97946127a033dd90e196434b9cff01dd261560d403227e5ad42aac4b49e6
|
File details
Details for the file trilogy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: trilogy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b40b39eaf33af200e2f8ad27dce31bd3ca8b21c02ab1b3983bef7e34660edc25
|
|
| MD5 |
d9e8648f1462a242cf3c9e79da62a1d6
|
|
| BLAKE2b-256 |
d1bf11d048d01a6666977d900f7e2c753ac516d6a649e4df8878172217ea5cd9
|