star-geodesy 0.1.1
WGS-84 geodetic to/from ECEF with exact inversion at any altitude
Public state: Beta. The registry label is VERIFIED. What the states mean →
Apache-2.0 Beta single file
Summary
WGS-84 geodetic coordinates to and from ECEF. Standard library only.
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 19 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_geodesy-0.1.1-py3-none-any.whl 2 kB
- Single file — copy it alongside your code · star_geodesy.py 2 kB
- Source code (.zip) 11 kB
python -m pip install star_geodesy-0.1.1-py3-none-any.whlIn Python: import star_geodesy
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_geodesy_0_1_1,
author = {Cavazzini, Andrea},
title = {{star-geodesy}: WGS-84 geodetic to/from ECEF with exact inversion at any altitude},
version = {0.1.1},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_geodesy/},
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-geodesy @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_geodesy"
Technical sheet
Requirements
- R1
geodetic_to_ecef(lat_deg, lon_deg, h_m) -> (x, y, z)in metres (WGS-84, NIMA TR8350.2 constants). - R2
ecef_to_geodetic(x, y, z) -> (lat_deg, lon_deg, h_m), iterative to 1e-14 rad at ANY altitude; RuntimeError if it does not converge; the forward transform of the result closes to < 1 micrometre. - R3 Invalid input raises
ValueError(|lat| > 90, Earth's centre).
Limits (what is not claimed)
Other datums, geoid heights, geodesic distances (see XC-003), any flight use.
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)
- no mutation measure yet
- Independent implementations written by others (needs 2)
- PROJ (OSGeo), pymap3d (scivision)
- Also compared with, not counted
- S.T.A.R.'s own re-derivations: S.T.A.R. iterative latitude
- Result
- Beta
Missing: no mutation measure yet
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Clean install from the release tag | VERIFIED | 2026-10-05 | pytest outside the tree: 19 passed in 0.22s |
| Mutation testing | VERIFIED | 2026-10-04 | before 80/96 = 0.8333; after 85/96 = 0.8854 |
| Review | VERIFIED | 2026-10-03 | Re-execution of bench.xc-011 reproduces the committed evidence bundles |
| Cross-check with independent libraries | VERIFIED | 2026-10-03 | star_geodesy, PROJ and pymap3d agree near the surface |
| Benchmark | VERIFIED | 2026-10-03 | 8/8 AGREE, 3 lineages |
| Reference value | VERIFIED | 2026-10-03 | lat 34.3524952 (printed 34.352496, PROJ 34.3524954), lon 46.4464168, h 5085.219 km; forward closure 0 m; b = 6356752.314245 m |
| Unit tests | VERIFIED | 2026-10-03 | 4/4 pass |
Fingerprints (SHA-256)
| star_geodesy-0.1.1-py3-none-any.whl | 31c32d559f5635c58b4bfd779c3158fdfe5ee901cc60520bb56381247aaf3911 |
| star_geodesy.py | b64fb8d6cbe9e2df7fec7f89298e3ffe4534e3ae5960dc4d050a1584739261b4 |
| star_geodesy-0.1.1-source.zip | eafb4a4fccf02fc1c7928ac20136e4b230136d1b1d3111fc772f0c37bccd3f43 |
