← All packages

Geodesy & maps

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:

python -m pip install star_geodesy-0.1.1-py3-none-any.whl

In Python: import star_geodesy

Get started →

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"

README · tests · evidence (GitHub)

Technical sheet

Package
star-geodesy
Import name
star_geodesy
Version
0.1.1
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.geodesy.ecef
Maturity
Beta (VERIFIED)
Published commit
dc09f61d

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

CheckStatusRecordedWhat was observed
Clean install from the release tagVERIFIED2026-10-05pytest outside the tree: 19 passed in 0.22s
Mutation testingVERIFIED2026-10-04before 80/96 = 0.8333; after 85/96 = 0.8854
ReviewVERIFIED2026-10-03Re-execution of bench.xc-011 reproduces the committed evidence bundles
Cross-check with independent librariesVERIFIED2026-10-03star_geodesy, PROJ and pymap3d agree near the surface
BenchmarkVERIFIED2026-10-038/8 AGREE, 3 lineages
Reference valueVERIFIED2026-10-03lat 34.3524952 (printed 34.352496, PROJ 34.3524954), lon 46.4464168, h 5085.219 km; forward closure 0 m; b = 6356752.314245 m
Unit testsVERIFIED2026-10-034/4 pass

Fingerprints (SHA-256)

star_geodesy-0.1.1-py3-none-any.whl31c32d559f5635c58b4bfd779c3158fdfe5ee901cc60520bb56381247aaf3911
star_geodesy.pyb64fb8d6cbe9e2df7fec7f89298e3ffe4534e3ae5960dc4d050a1584739261b4
star_geodesy-0.1.1-source.zipeafb4a4fccf02fc1c7928ac20136e4b230136d1b1d3111fc772f0c37bccd3f43

results