← All packages

Geodesy & maps

star-lcc 0.1.0

Lambert conformal conic projection

Public state: Released & Verified. The registry label is RELEASED. What the states mean →

Apache-2.0 Released & Verified single file

Summary

Lambert conformal conic projection, forward, inverse and scale factor, for cones in either hemisphere and the tangent cone; within 8e-7 m per Earth radius of PROJ and 7e-6 m of PyGeodesy on 600 cases; reproduces Snyder's published example 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:

python -m pip install star_lcc-0.1.0-py3-none-any.whl

In Python: import star_lcc

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_lcc_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-lcc}: Lambert conformal conic projection},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_lcc/},
  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-lcc @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_lcc"

README · tests · evidence (GitHub)

Technical sheet

Package
star-lcc
Import name
star_lcc
Version
0.1.0
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.geodesy.lambert-conic
Maturity
Released & Verified (RELEASED)
Published commit
dc09f61d

Requirements

  • R1 lcc_forward and lcc_inverse: Snyder's formulas (USGS PP 1395, 15-1 … 15-11) with the isometric latitude written without cancellation, 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 lcc_scale: the point scale factor, exactly 1 on the standard parallels. Reproduces Snyder's k = 0.9970171.
  • R3 Measured on 600 cones and points on WGS-84 (60 tangent cones): forward within 8e-7 m per Earth radius of plane distance of PROJ and 7e-6 m of PyGeodesy; inverse within 7e-7 m (PROJ's plane coordinates) and 6e-6 m (PyGeodesy's) of the starting point; scale within 1.2e-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 at or beyond the apex of the cone.

Limits (what is not claimed)

No false easting or northing, no scale reduction k0 (the 1SP variant with k0 ≠ 1 is not offered), no named national grids. PyGeodesy was compared on 553 of the 600 cases: on the 47 whose longitude and central meridian lie on opposite sides of the date line its result differs by up to 4.7e7 m while PROJ and this module agree; that is recorded as a candidate observation about a third-party library, not verified further and not reported. For a tangent cone PyGeodesy takes the origin latitude as the parallel, so those cases were generated with lat0 = lat1.

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_lcc.py 0.896 (2026-10-06)
Independent implementations written by others (needs 2)
PROJ +proj=lcc and get_factors (C), PyGeodesy lcc.Conic / toLcc (Python)
Also compared with, not counted
published values: Snyder, USGS PP 1395, p. 296
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Clean install from the release tagVERIFIED2026-10-06pytest outside the tree: 38 passed in 0.16s
Unit testsVERIFIED2026-10-0638 passed in 0.39s
ReviewVERIFIED2026-10-06Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed
ReviewVERIFIED2026-10-06Re-running the cross-check gives a byte-identical evidence file
Reference valueVERIFIED2026-10-06(1894410.898, 1564649.478), k = 0.99701714: within 0.022 m and 4.2e-8 of the printed values (suite: 38 passed in 0.39s)
Cross-check with independent librariesVERIFIED2026-10-06star_lcc reproduces the Lambert conformal conic of two independent libraries, in both hemispheres and for the tangent cone
BenchmarkVERIFIED2026-10-06forward: PROJ 7.6e-07, PyGeodesy 6.6e-06 (m per Earth radius); inverse: 6.3e-07 m, 5.5e-06 m

Fingerprints (SHA-256)

star_lcc-0.1.0-py3-none-any.whlf879de3fd25d6083a813332a6d9dd3d543b61bb42ff82cc713a2e010a44136d8
star_lcc.pyb6835973a489dbb88814283e40ed14043c356d8738e24491e03540880ce181e1
star_lcc-0.1.0-source.zip357677778439e0e702e13603b245b6e190b41d61915c39d2b960000374ae14eb

results