Repository navigation
reprojax 0.2.0
Published to PyPI on 2026-11-10. See the release record for the tested environments, the artifact hashes and the post-publication verification.
First public release.
PixelTransform: theProtocol-based seam the package is built around. Any callabletransform(x_out, y_out) -> (x_in, y_in)satisfies it structurally;reprojax.core.PixelTransformis for typing only. Conforming transforms are pure array operations, so they work underjax.jit,jax.vmapandjax.grad.reproject_interpandreproject_interp_core: bilinear (order 1) and nearest (order 0) reprojection, matchingreproject's call and return shape.reproject_interp_batchedmaps a batch of pre-built transforms.reproject_adaptiveandreproject_adaptive_core: the DeForest (2004) adaptive anti-aliased algorithm with agaussianorhannkernel. The Jacobian comes from JAX autodiff rather than finite differences; the search window is a fixed maximum size becausevmapneeds static shapes.pixel_map(x_out, y_out, bounds_shape=(ny, nx)): an optional transform capability returning finite coordinates plus a boolean geometric-validity mask. Interpolation uses it when present and falls back to the two-result callable contract otherwise. It keeps invalid coordinates out of the interpolation arithmetic, so gradients stay finite on mixed valid/invalid batches.matrix_precision="f64" | "f32": the coordinate-precision choice, default"f64"."f64"requiresjax_enable_x64;"f32"needs no x64 and runs the per-pixel path in float32 while composing the celestial rotation in float64 on the host. f32 coordinate accuracy is capped at 6e-4 px forward and 5e-4 px reverse on the real SPHEREx pair — a coordinate bound, not an image-agreement or fp64-equivalence claim.- Requires
mapprojax>=0.3.0,<0.4. Runtime dependencies arenumpy>=2.4.6,jax>=0.10.2,astropy>=7.2.0.reproject>=0.21is a test-only golden reference, pinned to 0.21.0 inci/. - The sdist ships the package only;
tests/and its 16 MB of FITS fixtures stay in the repository. - Accuracy evidence against
reproject0.21.0: the real SPHEREx pair agrees tortol=1e-6, atol=0.01(interp, enforced) andatol=0.005(adaptive, enforced) over all jointly-valid pixels, with exact footprint equality; synthetic pairs agree to1e-8/1e-9(interp) and1e-6/1e-8(adaptive).
Install
pip install reprojax==0.2.0
This installs mapprojax 0.3.0 from PyPI. Published to PyPI; these files were uploaded with an API token, so they have no provenance attestations. Later releases use trusted publishing.
| File | SHA-256 |
|---|---|
reprojax-0.2.0-py3-none-any.whl |
e0fb9a88aa584361813c91bfcb833f603c0a4a8279a19dc04b0304327c54fc6c |
reprojax-0.2.0.tar.gz |
531e0bce0952fa05b1e68d249ec88225e92b29969ded45c8183ddc966c0fa719 |