Shared JAX-based utilities for the HWO direct imaging simulation suite — constants, conversions, and image transforms.
Project description
hwoutils
hwoutils is the shared utility foundation for the HWO direct imaging simulation suite. It provides JAX-native physical constants, unit conversions, and flux-conserving image transforms used across:
- yippy — Coronagraph performance modeling
- orbix — Orbital dynamics and target scheduling
- coronagraphoto — Image simulation for coronagraphic observations
- coronalyze — Post-processing and SNR analysis
- hwosim — End-to-end mission simulations
Key Features
- Physical Constants — Single source of truth for SI constants, conversion factors, and astronomical quantities
- Unit Conversions — Pure JAX conversion functions (angular, flux, distance, time) with zero astropy overhead
- Image Transforms — Flux-conserving resampling, sub-pixel shifts, and cubic spline interpolation
- JAX-Native — All operations are JIT-compilable, differentiable, and GPU-accelerated
Installation
With uv (recommended):
uv pip install hwoutils
Or with pip:
pip install hwoutils
Quick Start
from hwoutils import constants as const
from hwoutils import conversions as conv
from hwoutils.transforms import resample_flux
# Convert 5 arcsec to lambda/D for a 6m telescope at 550nm
sep_lod = conv.arcsec_to_lambda_d(5.0, 550.0, 6.0)
# Flux-conserving PSF resampling
resampled = resample_flux(psf, pixscale_src=0.01, pixscale_tgt=0.1, shape_tgt=(64, 64))
Documentation
Full documentation is available at hwoutils.readthedocs.io.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hwoutils-1.1.0.tar.gz.
File metadata
- Download URL: hwoutils-1.1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4613bbde136163c3c46f1f4a34179f80b209315c0621fe374bee6e27d3c21931
|
|
| MD5 |
fa4bb223dce76bda9b3f6d1d8db969ee
|
|
| BLAKE2b-256 |
0017a59c5098762b9ae0f7c90884c5e70d095858ebc7d8f8ca492c9ac3d0c364
|
Provenance
The following attestation bundles were made for hwoutils-1.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on CoreySpohn/hwoutils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hwoutils-1.1.0.tar.gz -
Subject digest:
4613bbde136163c3c46f1f4a34179f80b209315c0621fe374bee6e27d3c21931 - Sigstore transparency entry: 983578159
- Sigstore integration time:
-
Permalink:
CoreySpohn/hwoutils@91b17b433b220e52671a339c579ff3424df4d900 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@91b17b433b220e52671a339c579ff3424df4d900 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hwoutils-1.1.0-py3-none-any.whl.
File metadata
- Download URL: hwoutils-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35348e95aa7503d06d344e9c511b49eb8d01deaabe14096b92399bdce9278462
|
|
| MD5 |
e9e664ec174d949addce051cc6b5a0d4
|
|
| BLAKE2b-256 |
7412db62e0dca562ffbf170293bd30920ef2ad7e0f07818bb50ea34405cb2136
|
Provenance
The following attestation bundles were made for hwoutils-1.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on CoreySpohn/hwoutils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hwoutils-1.1.0-py3-none-any.whl -
Subject digest:
35348e95aa7503d06d344e9c511b49eb8d01deaabe14096b92399bdce9278462 - Sigstore transparency entry: 983578162
- Sigstore integration time:
-
Permalink:
CoreySpohn/hwoutils@91b17b433b220e52671a339c579ff3424df4d900 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@91b17b433b220e52671a339c579ff3424df4d900 -
Trigger Event:
push
-
Statement type: