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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
prism_imageproc-0.1.0rc1.tar.gz 11.8 MB With provenance Details for prism_imageproc-0.1.0rc1.tar.gz

Built distributions (wheels)

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

Total release size: 21.0 MB

Release files / prism_imageproc-0.1.0rc1.tar.gz

Download URL prism_imageproc-0.1.0rc1.tar.gz
Size 11.8 MB
Tags Source
SHA-256 checksum
How to use checksums
8e9c910656f663ab0c99c36f7e763b6cddf897fad2011e6701c0c05e595dab7d
BLAKE2b-256 checksum
How to use checksums
cfe41b789e265e1b48f342c57a8f45f343d9e83abceaf10ab3a63cde6823f790
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

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

Download URL prism_imageproc-0.1.0rc1-cp312-abi3-win_amd64.whl
Size 2.1 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
be413db4f4ddb1926461ff295f38ceef727aa905b2733587f0f584103c358678
BLAKE2b-256 checksum
How to use checksums
81112d1e325c640715afbec9beb08f4cfa20957005e6162426c374694c09efa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

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

Download URL prism_imageproc-0.1.0rc1-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.6 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ac7c734b4c31177dfd2613f497ec7af5dc4a0031a8cd323cdb926b61ed6f601f
BLAKE2b-256 checksum
How to use checksums
7e77f0cd8d2587fbf6c0eac3d88d58595bf89604259e0be5652766eb1739fbb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

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

Download URL prism_imageproc-0.1.0rc1-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.3 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
3bee19f88fbbe11bc722b1f5a82112412a1ff78201d6a1693db434836d774b6d
BLAKE2b-256 checksum
How to use checksums
e9d71f4846cde704cedd771be25d1c969ef9df6caf7acb4e540abd90bd172630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

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

Download URL prism_imageproc-0.1.0rc1-cp312-abi3-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
05db0c948d90352e147de4eb14dd7f86eadbc7d929f40b68507a30cce6b9c1d3
BLAKE2b-256 checksum
How to use checksums
4454a31531bd6f2556211fac56e2838389506bf878847672f1da9184fdbb0a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Security for prism-imageproc 0.1.0rc1

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.0rc1.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 30, 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