rms-psiops
Photometric Science Image Operations (psiops)
Overview
psiops is a Python library of image-processing routines built on NumPy and
SciPy. Unlike general-purpose image tools, every operation is designed to
preserve the photometric content of an image: the total signal in any region is
conserved (or scaled in a precisely known way) as the image is shifted, rotated,
zoomed, or resampled. This makes the library suitable for quantitative scientific
work, where the number of photons in a feature matters and not just its
appearance.
Features
- Spatial transforms that conserve flux:
shift,ishift,zoom,unzoom,resample,reshape, androtate. - Spatial filters:
gaussian_filter, plusmean,median,minimum,maximum,variance, andstandard deviationfilters over an arbitrary footprint. - Stack operations that combine an array of images:
mean,median,minimum,maximum,variance, andstandard deviation. - First-class support for masked data via boolean masks, mask values,
per-pixel weights, NaNs, or NumPy
MaskedArrayinputs. - Operates on arbitrarily-shaped stacks of images at once; the last two axes are the spatial axes.
Installation
pip install rms-psiops
Quick example
import numpy as np
import psiops
# A stack of ten 128x128 exposures with some bad pixels
stack = np.random.default_rng(0).random((10, 128, 128))
mask = np.random.default_rng(1).random((10, 128, 128)) < 0.05
# Mask-aware median combination; pixels bad in every frame stay masked
combined, combined_mask = psiops.median(stack, mask=mask)
Documentation
Full documentation is published at rms-psiops.readthedocs.io. The User's Guide introduces the core concepts — image stacks, the pixel-coordinate convention, masking, and return values — and walks through every family of operations with examples; the API reference documents every public function.
To build the documentation locally, run scripts/read-docs.sh.
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.
Metadata
Release files for rms-psiops 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rms_psiops-1.0.0.tar.gz | 231.2 kB | Without provenance | Details for rms_psiops-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rms_psiops-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for rms_psiops-1.0.0-py3-none-any.whl |
Total release size: 326.0 kB
Release files / rms_psiops-1.0.0.tar.gz
| Download URL | rms_psiops-1.0.0.tar.gz |
|---|---|
| Size | 231.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bae934da1e3703ed18161cc76b45c285ee185f9146cf291a7648b63d4d500f3c
|
|
BLAKE2b-256 checksum How to use checksums |
7ba4f0380d5006281e337981493c6ba64537f6260bbfc61947f6217ee62af9dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / rms_psiops-1.0.0-py3-none-any.whl
| Download URL | rms_psiops-1.0.0-py3-none-any.whl |
|---|---|
| Size | 94.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa85d761614db29e7f639bfea8f225ef951950456af1ca75e2659726dc8ccfe6
|
|
BLAKE2b-256 checksum How to use checksums |
d2682800ac986a5f0ad2401bdb3d73bd208ce2754a54de763a8a8589f0adc3e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for rms-psiops 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.