star-utm 0.1.0
Transverse Mercator and UTM coordinates
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Transverse Mercator and UTM coordinates, forward and inverse, by Krueger's series; within 2e-7 m of PROJ and PyGeodesy on 600 points in their zone and 2.5e-7 m of PROJ up to 12 deg from the central meridian; 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 344 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026. Open it in the Workspace →
Use it on your computer
No account and no GitHub needed. Download, then install with one command:
- Install file · star_utm-0.1.0-py3-none-any.whl 4 kB
- Single file — copy it alongside your code · star_utm.py 7 kB
- Source code (.zip) 27 kB
python -m pip install star_utm-0.1.0-py3-none-any.whlIn Python: import star_utm
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_utm_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-utm}: Transverse Mercator and UTM coordinates},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_utm/},
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-utm @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_utm"
Technical sheet
Requirements
- R1
tm_forwardandtm_inverse: Krueger's series to n^4 (Karney 2011) about a central meridian, with scale k0 and no false origin, for any ellipsoid with flattening up to 0.1. Reproduces Snyder's numerical example (USGS PP 1395, p. 269) to the printed 0.1 m. - R2
utm_zone,utm_forward,utm_inverse: WGS-84, k0 = 0.9996, false easting 500000 m, false northing 10000000 m in the South, 6-degree zones from 180 W; a zone can be forced. - R3 Measured: 600 points in their zone within 2e-7 m (forward) and 6e-8 m (inverse) of PROJ and PyGeodesy; 300 points 3 to 12 deg from the central meridian within 2.5e-7 m of PROJ.
- R4 Every function returns its result or raises
ValueError: non-numeric, boolean, NaN or infinite input, latitude outside [-90, 90] (UTM: [-80, 84]), longitude outside [-180, 180], a point more than 12 deg from the central meridian, an ellipsoid or scale outside the stated ranges, a zone not an integer in 1…60, a hemisphere other than 'N' or 'S', coordinates beyond the pole of the projection.
Limits (what is not claimed)
The Norway and Svalbard exceptions of the MGRS grid are NOT applied: utm_zone is the plain 6-degree rule (one of 600 random points fell in an exception zone and was compared in the other library's zone). No MGRS letters, no UPS for the polar caps, no datum transformation. Beyond 12 deg from the central meridian the functions refuse: the accuracy there was not measured. The accuracy stated is agreement with two libraries, not with a survey.
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_utm.py 0.962 (2026-10-06)
- Independent implementations written by others (needs 2)
- PROJ +proj=tmerc / utm (C, Poder-Engsager), PyGeodesy toUtm8 / Utm.toLatLon (Python, Krueger)
- Also compared with, not counted
- published values: Snyder, USGS PP 1395, p. 269
- 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: 344 passed in 1.19s |
| Unit tests | VERIFIED | 2026-10-06 | 344 passed in 1.10s |
| 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 | (127106.467, 4484124.434): within 0.034 m of the printed values (printed to 0.1 m) (suite: 344 passed in 1.10s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_utm reproduces the transverse Mercator of two independent libraries to well below a micrometre inside a UTM zone |
| Benchmark | VERIFIED | 2026-10-06 | in zone: PROJ 1.9e-07 m, PyGeodesy 1.9e-07 m; up to 12 deg: 2.4e-07 m |
Fingerprints (SHA-256)
| star_utm-0.1.0-py3-none-any.whl | 28a8a79d06cd81fa29100186f27eb2e7b38ce613e1a1ea4b04b2c29f0e322b21 |
| star_utm.py | 16cf6380d92088abb7f06f108e086cef9fc783a63ad1e5e534105fcb4c0bc346 |
| star_utm-0.1.0-source.zip | 4ba9615eaebdf55ef4d0839c70acc8b675d79c6545eaccc0101f5269f170944f |
