stpreview
Space Telescope Product Downsampling
pip install stpreview
Usage
❯ uv run stpreview --help
usage: stpreview [-h] [--observatory {roman,jwst}] [--compass]
INPUT OUTPUT {to,by} ...
positional arguments:
INPUT path to ASDF file with 2D image data
OUTPUT path to output image file
{to,by}
to downsample the given ASDF image by the given integer
factor
by downsample the given ASDF image to the desired shape (the
output image may be smaller than the desired shape, if no
even factor exists)
options:
-h, --help show this help message and exit
--observatory {roman,jwst}
(if omitted, will attempt to infer from file)
--compass draw a north arrow on the image
stpreview by
❯ uv run stpreview input.asdf output.png by --help
usage: stpreview INPUT OUTPUT by [-h] FACTOR [FACTOR ...]
positional arguments:
FACTOR block size by which to downsample image data
options:
-h, --help show this help message and exit
stpreview to
❯ uv run stpreview input.asdf output.png to --help
usage: stpreview INPUT OUTPUT to [-h] SHAPE [SHAPE ...]
positional arguments:
SHAPE desired pixel resolution of output image
options:
-h, --help show this help message and exit
Examples
downsample a sample Roman image by a factor of 10, and add a compass rose
stpreview /grp/roman/TEST_DATA/23Q4_B11/aligntest/r0000501001001001001_01101_0001_WFI01_cal.asdf docs/images/by.png --compass by 10 10
downsample a sample Roman image to within 300x300 pixels
stpreview /grp/roman/TEST_DATA/23Q4_B11/aligntest/r0000501001001001001_01101_0001_WFI01_cal.asdf docs/images/to.png to 300 300
Metadata
Release files for stpreview 1.1.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 |
|---|---|---|---|---|
| stpreview-1.1.0.tar.gz | 13.0 kB | Without provenance | Details for stpreview-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stpreview-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for stpreview-1.1.0-py3-none-any.whl |
Total release size: 20.7 kB
Release files / stpreview-1.1.0.tar.gz
| Download URL | stpreview-1.1.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ea3bc1f0c3f739c403e29499f05cde143f926e904aefca8907c069d0d9e1ef5
|
|
BLAKE2b-256 checksum How to use checksums |
0c220c59da5bf5f37814a24b810c015d819c2b9fe13d3b50a22ee6337fa340bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / stpreview-1.1.0-py3-none-any.whl
| Download URL | stpreview-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9926a602272457f05dd71ffd45d49f991d3eaa3b7ba6abd642394c4f35258965
|
|
BLAKE2b-256 checksum How to use checksums |
c8d28c6b073880ceeb25e67f451c55a973b3b5869d4380cb1cf9b2afded4d4b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for stpreview 1.1.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.