star-atmosphere 0.1.0
U.S. Standard Atmosphere 1976 (below 86 km)
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Temperature, pressure, density and speed of sound of the 1976 U.S. Standard Atmosphere at geometric altitude from -5 km to 86 km; reproduces the published tables to the printed digits and refuses altitudes outside the model.
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 39 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_atmosphere-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_atmosphere.py 4 kB
- Source code (.zip) 16 kB
python -m pip install star_atmosphere-0.1.0-py3-none-any.whlIn Python: import star_atmosphere
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_atmosphere_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-atmosphere}: U.S. Standard Atmosphere 1976 (below 86 km)},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_atmosphere/},
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-atmosphere @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_atmosphere"
Technical sheet
Requirements
- R1
ussa1976(z_m): the seven-layer model of "U.S. Standard Atmosphere, 1976" with the constants of the standard (R* = 8.31432 J/(mol K)). Reproduces the published base pressure of every layer within 2e-7 and eight rows of the main table to the printed digits (0.001 K; one unit in the fifth digit of pressure and density). - R2
geopotential_m(z)/geometric_m(h): the standard's conversion with r0 = 6 356 766 m; the input ofussa1976is GEOMETRIC altitude (the usual source of 0.3 % errors at 20 km is passing one for the other). - R3 Measured against two independent implementations on 308 altitudes: fluids within 4e-15 relative; hapsira COESA76 within 3e-16 in temperature and 5.7e-5 in pressure and density (its table of base pressures is rounded to 4-5 digits: verified in its data file).
- R4 Valid from -5000 m to 86 000 m geometric. Outside, and for non-numeric, boolean, NaN or infinite input:
ValueError. Nothing is extrapolated.
Limits (what is not claimed)
A standard atmosphere, not the weather: real density at a given place and day differs by tens of percent. Above 86 km the standard uses a different formulation, not implemented here. Above 80 km the temperature returned is the molecular-scale temperature (0.04 % above the kinetic temperature at 86 km); see the module docstring.
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_atmosphere.py 0.969 (2026-10-06)
- Independent implementations written by others (needs 2)
- fluids ATMOSPHERE_1976, hapsira COESA76 (table-driven)
- Also compared with, not counted
- published values: U.S. Standard Atmosphere 1976 printed tables
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Unit tests | VERIFIED | 2026-10-06 | 39 passed in 0.41s |
| 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 | base pressures within 2e-7 relative; table rows within 0.0005 K and one unit in the fifth printed digit of pressure and density (suite: 39 passed in 0.41s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_atmosphere agrees with two independent implementations of the 1976 standard from 0 to 86 km |
| Benchmark | VERIFIED | 2026-10-06 | max relative pressure difference from hapsira by layer: 0-11 km 2.3e-07, 11-20 km 3.0e-06, 20-32 km 1.6e-05, 32-47 km 1.6e-05, 47-51 km 5.7e-05, 51-71 km 5.7e-05, 71-84.852 km 1.3e-05 |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 39 passed in 0.31s |
Fingerprints (SHA-256)
| star_atmosphere-0.1.0-py3-none-any.whl | fd5a6323464ac05b993396702e08f03127d999b3aeb67ab60a99035e25c71cd9 |
| star_atmosphere.py | 3cc142e896a963a1229a0cbb32709c1ebc62ea5482ecbec4e85baae5228c9dca |
| star_atmosphere-0.1.0-source.zip | fa7523e7544966df284e723933236e365bdaae195e8041a9d27316f3e50b7fdb |
