← All packages

Orbits & astrodynamics

star-coverage 0.1.0

What a satellite sees, and from where it is seen

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

Apache-2.0 Released & Verified single file

Summary

Earth-central angle, nadir angle, slant range, covered fraction, footprint area and elevation for a satellite at a given altitude and minimum elevation; agrees with pymap3d and PROJ on a sphere to 1e-13 and keeps precision from 1 mm of altitude to 1e12 km.

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 28 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_coverage-0.1.0-py3-none-any.whl

In Python: import star_coverage

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_coverage_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-coverage}: What a satellite sees, and from where it is seen},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_coverage/},
  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-coverage @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_coverage"

README · tests · evidence (GitHub)

Technical sheet

Package
star-coverage
Import name
star_coverage
Version
0.1.0
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.orbit.coverage-geometry
Maturity
Released & Verified (RELEASED)
Published commit
dc09f61d

Requirements

  • R1 central_angle_deg, nadir_angle_deg, slant_range, coverage_fraction, footprint_area for an altitude and a minimum elevation; elevation_deg(altitude, central_angle) is the inverse relation (negative below the horizon). Default radius 6378.137 km; radius= for another body or unit. The three angles add up to 90 degrees.
  • R2 Reproduces the textbook geostationary figures (81.3 deg, 8.7 deg, 41 679 km, 42.4 % of the surface, 76.3 deg at 5 deg of elevation) and the 2294 km horizon of a 400 km orbit.
  • R3 Measured against pymap3d and PROJ on a sphere (400 cases, 200 km to 400 000 km): elevation within 8e-14 deg, slant range within 4e-15 relative, central angle within 3e-14 deg. The formulas are written to keep precision at both ends: 1 mm above the ground the slant range is right to 1e-14 (the textbook form loses seven digits there), and at 1e12 km the central angle stays below 90 degrees.
  • R4 Every function returns a finite float or raises ValueError: non-numeric, boolean, NaN or infinite input, altitude <= 0, radius <= 0, minimum elevation outside [0, 90], central angle outside [0, 180], an altitude so small or so large against the radius that the ratio is not representable.

Limits (what is not claimed)

A sphere: on the real Earth the horizon distance changes by up to about 0.3 % with latitude. No refraction, terrain or antenna pattern; no constellation design (number of satellites, overlap, revisit).

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_coverage.py 0.954 (2026-10-06)
Independent implementations written by others (needs 2)
PROJ +proj=topocentric on a sphere, pymap3d geodetic2aer on a spherical ellipsoid
Also compared with, not counted
published values: textbook geostationary coverage figures
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Unit testsVERIFIED2026-10-0628 passed in 1.06s
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-0681.2995 deg, 8.7005 deg, 41678.94 km, 42.44 %, 76.333 deg, 2294.02 km (suite: 28 passed in 1.06s)
Cross-check with independent librariesVERIFIED2026-10-06star_coverage agrees with two independent coordinate libraries on a sphere over five decades of altitude
BenchmarkVERIFIED2026-10-06largest differences: proj: elevation 7.8e-14 deg, range 3.2e-15, central angle 2.7e-14 deg over 384 visible cases; pymap3d: elevation 6.4e-14 deg, range 2.6e-15, central angle 2.3e-14 deg over 384 visible cases
Clean install from the release tagVERIFIED2026-10-06pytest outside the tree: 28 passed in 0.41s

Fingerprints (SHA-256)

star_coverage-0.1.0-py3-none-any.whlea04b0895582ccb09d58deba5fa6144d0de83c88ecedf6f96c548b321d018768
star_coverage.pyb7bf0970d36692f5579c8462cc54e73ae389b2df0844b1fcc69157a30f3dcfad
star_coverage-0.1.0-source.zip5a8d874f8c9f653bf163edb74cfaee7a09f8d13155c1158005c37d351e9980b6

results