star-iod 0.1.0
Velocity from three positions (Gibbs, Herrick-Gibbs)
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Velocity at the middle of three position vectors by Gibbs' method (cancellation-free form) and Herrick-Gibbs, with the measured domain of each (crossover near 0.4 degrees), agreement with Orekit IodGibbs within 8e-9 and explicit refusal of non-coplanar, collinear or impossible geometry.
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_iod-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_iod.py 6 kB
- Source code (.zip) 20 kB
python -m pip install star_iod-0.1.0-py3-none-any.whlIn Python: import star_iod
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_iod_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-iod}: Velocity from three positions (Gibbs, Herrick-Gibbs)},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_iod/},
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-iod @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_iod"
Technical sheet
Requirements
- R1
gibbs(r1, r2, r3, mu, coplanar_tol_deg=3): Vallado Algorithm 54. Reproduces Example 7-3 within 5e-7 km/s. The direction of motion is the order r1, r2, r3. The sums of the textbook form are written with differences of neighbouring vectors: at 0.02 degrees of spacing the error is 2e-8 relative instead of 1.5e-5. - R2
herrick_gibbs(r1, r2, r3, t1, t2, t3, mu, coplanar_tol_deg=3): Vallado Algorithm 55, for closely spaced positions;separation_degreturns the two angles. - R3 Measured domains (240 known orbits, largest relative velocity error by spacing in mean anomaly):
- R4 Every function returns three finite floats or raises
ValueError: wrong shapes, non-numeric, boolean, NaN or infinite input; a zero position; mu <= 0; positions further thancoplanar_tol_degfrom a common plane; collinear or coincident positions; positions through which no orbit about the centre passes (Gibbs); times not strictly increasing (Herrick-Gibbs).
Limits (what is not claimed)
Perfect positions in, velocity out: no measurement noise model, no covariance, no angles-only methods (Gauss, Laplace, Gooding), no differential correction. With noisy fixes the error of either method is dominated by the noise divided by the arc length, not by the figures above.
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_iod.py 0.910 (2026-10-06)
- Independent implementations written by others (needs 2)
- NAIF CSPICE conics: positions and true velocity of known orbits, Orekit IodGibbs
- Also compared with, not counted
- published values: Vallado Example 7-3 printed values
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Unit tests | VERIFIED | 2026-10-06 | 39 passed in 0.38s |
| 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 | all three components within 2.2e-7 km/s of the printed values; Example 7-4 (Herrick-Gibbs) first two components within 1e-6 km/s, third component not asserted (suite: 39 passed in 0.38s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_iod recovers the true velocity of known orbits and agrees with an independent implementation of Gibbs' method |
| Benchmark | VERIFIED | 2026-10-06 | largest relative velocity error by spacing (Gibbs / Herrick-Gibbs): 0.02 deg 2.2e-08 / 6.7e-12, 0.1 deg 1.1e-09 / 2.0e-11, 0.5 deg 4.1e-11 / 1.1e-07, 2.0 deg 2.6e-12 / 1.6e-05, 10.0 deg 1.2e-13 / 6.0e-02, 40.0 deg 1.2e-14 / 5.1e-01 |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 39 passed in 0.23s |
Fingerprints (SHA-256)
| star_iod-0.1.0-py3-none-any.whl | 39322ea6ad2433c0258767350766a344beb627113c38f5e104072b4137e2acca |
| star_iod.py | 6a2072071e695d5209723ff1f667502faff9e7f3c5683732a9765f1e4878d01e |
| star_iod-0.1.0-source.zip | 047b01c71b430e5eb6dab23fef8f8f7c2af8a9d01701c18034cae301c685cd6f |
