Convert PDS3, VICAR, and FITS astronomy images to JPEG, TIFF, and other display formats.
Project description
rms-picmaker
Features
rms-picmaker converts binary 2-D or 3-D astronomy images — PDS3-labeled images,
VICAR images, and FITS images — into JPEG, TIFF, PNG, or other popular display
formats. It is used by the PDS Ring-Moon Systems Node (SETI Institute) for image
preview generation.
It ships both as a command-line tool (picmaker) and as an importable Python
library (from picmaker.picmaker import images_to_pics). Features include
percentile stretching, gamma correction, histogram equalization, colormap and
filter-aware tinting, cropping, resizing, padding, and 16-bit TIFF output.
Installation
The picmaker module is available via the rms-picmaker package on PyPI and can be
installed with:
pip install rms-picmaker
Getting Started
Convert a single image to JPEG with the defaults:
picmaker input.IMG --directory out/
Process a directory of VICAR images into 8-bit PNGs with a 1–99% percentile stretch and a gamma of 0.7:
picmaker -r --pattern '*.vic' --extension png \
--percentiles 1 99 --gamma 0.7 \
--directory out/ inputs/
Use as a library:
from picmaker.picmaker import images_to_pics
images_to_pics(
['input.IMG'],
directory='out/',
extension='jpg',
percentiles=(1.0, 99.0),
gamma=0.7,
)
Security note:
picmakeralso accepts Python pickle files as a fallback input format. Only pass pickle inputs you trust — unpickling executes arbitrary code from the file.
Details are available in the module documentation.
Contributing
Information on contributing to this package can be found in the Contributing Guide.
Links
Licensing
This code is licensed under the Apache License v2.0.
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
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
File details
Details for the file rms_picmaker-1.0.0.tar.gz.
File metadata
- Download URL: rms_picmaker-1.0.0.tar.gz
- Upload date:
- Size: 184.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66da10fb5c71e0b937ca7b4f22b2c8289a2ab4a6ce449ac062d610f498bbcfd1
|
|
| MD5 |
a37a6de6765142ef15fb7a976c07c3e5
|
|
| BLAKE2b-256 |
d9d10f70667fcf23fe5f57dc4bc35b427b65c4832b39b2c9a13918d2b5d6ef12
|
Provenance
The following attestation bundles were made for rms_picmaker-1.0.0.tar.gz:
Publisher:
publish_to_pypi.yml on SETI/rms-picmaker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rms_picmaker-1.0.0.tar.gz -
Subject digest:
66da10fb5c71e0b937ca7b4f22b2c8289a2ab4a6ce449ac062d610f498bbcfd1 - Sigstore transparency entry: 1520530691
- Sigstore integration time:
-
Permalink:
SETI/rms-picmaker@fe5619816ef4f2e2a7e8afb6e0ac7d685ca73f39 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SETI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@fe5619816ef4f2e2a7e8afb6e0ac7d685ca73f39 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rms_picmaker-1.0.0-py3-none-any.whl.
File metadata
- Download URL: rms_picmaker-1.0.0-py3-none-any.whl
- Upload date:
- Size: 64.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2079c5f60a3051c0d6cfdda5b77c19c226a8dfd9be7c64bccc1237f1be6776bc
|
|
| MD5 |
1fd4d1a825f06c0a94d7506f46fab453
|
|
| BLAKE2b-256 |
bd839eafa799a624aa444c3e1421c115a5733a02ec82310936e4c167d9a351ab
|
Provenance
The following attestation bundles were made for rms_picmaker-1.0.0-py3-none-any.whl:
Publisher:
publish_to_pypi.yml on SETI/rms-picmaker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rms_picmaker-1.0.0-py3-none-any.whl -
Subject digest:
2079c5f60a3051c0d6cfdda5b77c19c226a8dfd9be7c64bccc1237f1be6776bc - Sigstore transparency entry: 1520530723
- Sigstore integration time:
-
Permalink:
SETI/rms-picmaker@fe5619816ef4f2e2a7e8afb6e0ac7d685ca73f39 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SETI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@fe5619816ef4f2e2a7e8afb6e0ac7d685ca73f39 -
Trigger Event:
release
-
Statement type: