star-polar 0.1.0
Polar stereographic projection and UPS
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Polar stereographic projection at either pole with any parallel of true scale, forward, inverse and scale factor, and the UPS grid; within 7e-8 m of PROJ and 5e-9 m of PyGeodesy on 600 cases; reproduces Snyder's published example and refuses out-of-range input.
Run in your browser
Edit the code and press Run (or Ctrl+Enter). Python runs in your browser with this package's published code. The first run downloads Python once (about 12 MB).
Runs in the browser: all 31 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026.
Use it on your computer
No account and no GitHub needed. Download, then install with one command:
- Install file · star_polar-0.1.0-py3-none-any.whl 4 kB
- Single file — copy it alongside your code · star_polar.py 7 kB
- Source code (.zip) 23 kB
python -m pip install star_polar-0.1.0-py3-none-any.whlIn Python: import star_polar
Cite it, and its bill of materials
For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.
@software{cavazzini_star_polar_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-polar}: Polar stereographic projection and UPS},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_polar/},
note = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}
For developers
Install directly from the public repository:
python -m pip install "star-polar @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_polar"
Technical sheet
Requirements
- R1
ps_forward,ps_inverse: Snyder's formulas (USGS PP 1395, 21-33 … 21-41) for either pole, with the parallel of true scale given by the caller (or the pole) and a scale multiplier k0; the isometric latitude is written without cancellation. Reproduce Snyder's numerical example to the printed 0.1 m. - R2
ps_scale: point scale factor, exactly 1 on the parallel of true scale.ups_forward,ups_inverse: UPS on WGS-84 (k0 = 0.994, 2,000,000 m false easting and northing). - R3 Measured on 600 cases at both poles (latitudes 20 to 89.999 deg, true scale at 50 to 90 deg): forward within 7e-8 m and inverse within 5e-8 m of PROJ, scale within 6e-11; UPS within 5e-9 m of PyGeodesy (forward and inverse) and 4.4e-5 m of PROJ's
ups. - R4 Every function returns finite floats or raises
ValueError: non-numeric, boolean, NaN or infinite input, a pole other than 'N' or 'S', a latitude more than 60 deg beyond the equator, a parallel of true scale in the other hemisphere or within 1 deg of the equator, an ellipsoid or scale outside the stated ranges.
Limits (what is not claimed)
Polar aspect only: no oblique or equatorial stereographic. ups_forward does not restrict the latitude to the UPS zones (north of 84 N, south of 80 S): it is the caller's choice of grid. No MGRS letters. PROJ's +proj=ups differs from PyGeodesy and from this module by up to 4.4e-5 m while PROJ's +proj=stere agrees to 7e-8 m: recorded as a candidate observation about a third-party library, not investigated and not reported.
Release gate
Computed by the registry from the result files, with the same function that decides RELEASED.
- Mutation score, latest measure of each module (needs at least 0.850)
- star_polar.py 0.949 (2026-10-06)
- Independent implementations written by others (needs 2)
- PROJ +proj=stere / ups and get_factors (C), PyGeodesy toUps8 / Ups.toLatLon (Python)
- Also compared with, not counted
- published values: Snyder, USGS PP 1395, p. 314
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 31 passed in 0.23s |
| Unit tests | VERIFIED | 2026-10-06 | 31 passed in 0.40s |
| Review | VERIFIED | 2026-10-06 | Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed |
| Review | VERIFIED | 2026-10-06 | Re-running the cross-check gives a byte-identical evidence file |
| Reference value | VERIFIED | 2026-10-06 | (-1540033.611, -560526.394): within 0.011 m of the printed values (printed to 0.1 m) (suite: 31 passed in 0.40s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_polar reproduces the polar stereographic projection of PROJ for any parallel of true scale and the UPS grid of PROJ and PyGeodesy, at both poles |
| Benchmark | VERIFIED | 2026-10-06 | UPS forward: PyGeodesy 4.7e-09 m, PROJ 4.3e-05 m; general: PROJ 6.6e-08 m |
Fingerprints (SHA-256)
| star_polar-0.1.0-py3-none-any.whl | 77483b9e14a9521a1ff6de08743a77355610e51d7042161a87d3eb092b0038e9 |
| star_polar.py | bb9766d610909103690216cf054a71c10459517903d5bc66a254df2f1347afff |
| star_polar-0.1.0-source.zip | ef743d0479b448d2884295a76370c1194cceff2b7fbdd745142294f3d12c8154 |
