Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

prism-imageproc

DOI

prism-imageproc provides tools for processing images from instruments modeled using SpectroForge. The library includes functions applying image transformations to map detector images onto the focal plane of the instrument, as well as remove diffraction slit curvature from the images. This library is designed to be used stand-alone, using the instrument configuration files generated by SpectroForge. This library is also used internally by SpectroForge.

Installation

You can install the library using pip:

pip install prism-imageproc

Usage

The library is used in the following way:

# Import the library
from prism_imageproc import ImageStraightener
import matplotlib.pyplot as plt # For plotting the straightened images

# Create a straightener object using the instrument configuration file
straightener = ImageStraightener.from_instrument_config('path/to/instrument.prcm')
# Get version of the library that produced this
lib_version = straightener.lib_version
# Get hash of the instrument model that produced this
instr_version = straightener.instr_version
# Load an image and map it onto the mosaic grid
image_array = ...  # Load your image as a 2D NumPy array
mapped_image = straightener.load_image(image_array)
# Straighten the image by removing slit curvature
straightened_images = mapped_image.straighten_image()
# The result is a dictionary of straightened images, one for each window. You can access them like this:
for window_name, straightened_image in straightened_images.items():
    print(f"Straightened image for window {window_name}:")
    straightened_image.plot()  # Render the straightened image
    plt.show() # Display the plot

Metadata

Release files for prism-imageproc 0.1.0rc0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prism-imageproc 0.1.0rc0
File Size Uploaded Provenance Actions
prism_imageproc-0.1.0rc0.tar.gz 11.8 MB With provenance Details for prism_imageproc-0.1.0rc0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for prism-imageproc 0.1.0rc0
File Actions
prism_imageproc-0.1.0rc0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for prism_imageproc-0.1.0rc0-cp312-abi3-win_amd64.whl
prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
prism_imageproc-0.1.0rc0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for prism_imageproc-0.1.0rc0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 13.9 MB

Release files / prism_imageproc-0.1.0rc0.tar.gz

Download URL prism_imageproc-0.1.0rc0.tar.gz
Size 11.8 MB
Tags Source
SHA-256 checksum
How to use checksums
5fdfed1e8c66a715900a6a4194f1bc05e1706da8cd1550476e2f4422b7d90360
BLAKE2b-256 checksum
How to use checksums
0786026fc0dae2e9b2e2976eacca84eac865265600d7553bf31e5302b20e853d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / prism_imageproc-0.1.0rc0-cp312-abi3-win_amd64.whl

Download URL prism_imageproc-0.1.0rc0-cp312-abi3-win_amd64.whl
Size 408.2 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3588160b2be8ac6163f97e77a6c808563c0d430b02ec24e4a50ef33150e61722
BLAKE2b-256 checksum
How to use checksums
0aa75883c1111214549f025c0365e275e5645d832821c5ed61961cd3fdad98ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 616.3 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
55e87d188f98ba7db1a2bec0ae26c82bae499c01e75b21b7f78ff6da7f2ee6af
BLAKE2b-256 checksum
How to use checksums
d991dd58a8c1e2392aa0c6e884f42bdbe1832f1977301b6a9183bb29b960abc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL prism_imageproc-0.1.0rc0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 583.7 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7e953440e7f229dd973fabf0e8b9280b4ba84f410f6e90c1884ba3453a207e4b
BLAKE2b-256 checksum
How to use checksums
4a37f08483cb44f798c59308bd221e329ea0de2059d08be4571d7dc74c497dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / prism_imageproc-0.1.0rc0-cp312-abi3-macosx_11_0_arm64.whl

Download URL prism_imageproc-0.1.0rc0-cp312-abi3-macosx_11_0_arm64.whl
Size 523.4 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
03ad97c9a50290b6be0244b00e98971bbc5db43f771a8b5f10bc50a6ae8fb79d
BLAKE2b-256 checksum
How to use checksums
5ed4709207c53a295bcde590a98871cb196c17f82b6102230ce97948ba1bfc62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Security for prism-imageproc 0.1.0rc0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for prism_imageproc-0.1.0rc0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page