← All packages

Orbits & astrodynamics

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:

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

In Python: import star_iod

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_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"

README · tests · evidence (GitHub)

Technical sheet

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

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_deg returns 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 than coplanar_tol_deg from 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

CheckStatusRecordedWhat was observed
Unit testsVERIFIED2026-10-0639 passed in 0.38s
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-06all 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 librariesVERIFIED2026-10-06star_iod recovers the true velocity of known orbits and agrees with an independent implementation of Gibbs' method
BenchmarkVERIFIED2026-10-06largest 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 tagVERIFIED2026-10-06pytest outside the tree: 39 passed in 0.23s

Fingerprints (SHA-256)

star_iod-0.1.0-py3-none-any.whl39322ea6ad2433c0258767350766a344beb627113c38f5e104072b4137e2acca
star_iod.py6a2072071e695d5209723ff1f667502faff9e7f3c5683732a9765f1e4878d01e
star_iod-0.1.0-source.zip047b01c71b430e5eb6dab23fef8f8f7c2af8a9d01701c18034cae301c685cd6f

results