Skip to main content

Convert PDS3, VICAR, and FITS astronomy images to JPEG, TIFF, and other display formats.

Project description

rms-picmaker

GitHub release; latest by date GitHub Release Date Test Status Documentation Status Code coverage
PyPI - Version PyPI - Format PyPI - Downloads PyPI - Python Version
GitHub commits since latest release GitHub commit activity GitHub last commit
Number of GitHub open issues Number of GitHub closed issues Number of GitHub open pull requests Number of GitHub closed pull requests
GitHub License Number of GitHub stars GitHub forks DOI

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 import picmaker). 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 import picmaker
from picmaker.parser import get_parser

# Let the argument parser fill in every default, then run the pipeline.
options = get_parser().parse_args([
    'input.IMG',
    '--directory', 'out/',
    '--extension', 'jpg',
    '--percentiles', '1', '99',
    '--gamma', '0.7',
])
picmaker(**vars(options))

Security note: picmaker also 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rms_picmaker-2.0.0.tar.gz (35.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rms_picmaker-2.0.0-py3-none-any.whl (86.5 kB view details)

Uploaded Python 3

File details

Details for the file rms_picmaker-2.0.0.tar.gz.

File metadata

  • Download URL: rms_picmaker-2.0.0.tar.gz
  • Upload date:
  • Size: 35.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rms_picmaker-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d05972125304d226265f7ca212a3f259385e0178d8a9b8b23708d5fdfdd1dbd5
MD5 b15437d66e2adc92276f3c812a6066a1
BLAKE2b-256 7116b6e62d2ed132f6f7e1db5b505bcfd6a359914900fd03e7a7ba78fab6e014

See more details on using hashes here.

Provenance

The following attestation bundles were made for rms_picmaker-2.0.0.tar.gz:

Publisher: publish_to_pypi.yml on SETI/rms-picmaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rms_picmaker-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: rms_picmaker-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rms_picmaker-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abfad6bdd0e950dffc612ee4e721deffdf31aa7c86580869cb808df45fb4b0f4
MD5 ec6aa5c7755a1eda4898be05db09035a
BLAKE2b-256 49c86bd53a87a46fefb89f35d358f578da442572d222d99fca8b787e27175fdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for rms_picmaker-2.0.0-py3-none-any.whl:

Publisher: publish_to_pypi.yml on SETI/rms-picmaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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