star-albers 0.1.0
Albers equal-area conic projection
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Albers equal-area conic projection, forward, inverse and both scale factors, for cones in either hemisphere and the tangent cone; within 1.9e-6 m of PROJ and 9.1e-7 m of PyGeodesy on 600 cases; reproduces Snyder's published coordinates and scale factors and refuses degenerate cones.
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 38 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_albers-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_albers.py 6 kB
- Source code (.zip) 22 kB
python -m pip install star_albers-0.1.0-py3-none-any.whlIn Python: import star_albers
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_albers_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-albers}: Albers equal-area conic projection},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_albers/},
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-albers @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_albers"
Technical sheet
Requirements
- R1
albers_forwardandalbers_inverse: Snyder's formulas (USGS PP 1395, 14-1 … 14-21), cones in either hemisphere, equal parallels for the tangent cone, the central meridian anywhere including across the date line. Reproduce Snyder's numerical example to the printed 0.1 m. - R2
albers_scalereturns (h, k) with h·k = 1: areas are preserved; k = 1 on the standard parallels. Reproduces Snyder's h = 1.0085173 and k = 0.9915546. - R3 Measured on 600 cones and points on WGS-84 (60 tangent cones): forward within 1.9e-6 m of PROJ and 9.1e-7 m of PyGeodesy; inverse within 2.6e-6 m of the starting point; parallel scale within 9e-14 of PyGeodesy and 1.3e-9 of PROJ (which differentiates numerically).
- R4 Every function returns finite floats or raises
ValueError: non-numeric, boolean, NaN or infinite input, latitudes beyond ±89, longitudes beyond ±180, standard parallels on opposite sides of the equator or within 1e-3 deg of it, an ellipsoid outside the stated ranges, a point outside the image of the cone.
Limits (what is not claimed)
No false easting or northing, no named national grids. The cone constant is computed as a difference between the two standard parallels: when they are very close (0.04 deg apart in the worst case measured) about four digits are lost and the difference from the libraries reaches 2 micrometres; PyGeodesy's formulation does not have this loss. 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_albers.py 0.899 (2026-10-06)
- Independent implementations written by others (needs 2)
- PROJ +proj=aea and get_factors (C), PyGeodesy albers.AlbersEqualArea2 (Python, Karney)
- Also compared with, not counted
- published values: Snyder, USGS PP 1395, p. 292
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Unit tests | VERIFIED | 2026-10-06 | 38 passed in 0.56s |
| 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 | (1885472.726, 1535925.005), h = 1.00851732, k = 0.99155461: within 0.026 m and 2e-8 of the printed values (suite: 38 passed in 0.56s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_albers reproduces the Albers equal-area conic of two independent libraries, in both hemispheres, across the date line and for the tangent cone |
| Benchmark | VERIFIED | 2026-10-06 | forward: PROJ 1.9e-06 m, PyGeodesy 9.0e-07 m; inverse: 2.6e-06 m, 1.2e-06 m |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 38 passed in 0.23s |
Fingerprints (SHA-256)
| star_albers-0.1.0-py3-none-any.whl | c9dc992d306c6977d8946310988a4ef5d002b0e5904e1c14068d560fb6e44623 |
| star_albers.py | 2526228dcff2e0540ecc506cc8f42ccd770a5b0f4261beb2806047b7694011c8 |
| star_albers-0.1.0-source.zip | 79233697ad9c3326226558d840c6ccd3504a4fb6e4ef23db00d1a41a26159b80 |
