← All packages

Telemetry & links

star-doppler 0.1.0

Range, range rate and one-way Doppler shift

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

Apache-2.0 Released & Verified single file

Summary

Range and range rate between two states and the frequency received over that link, by the longitudinal relativistic formula or the first-order one; on 600 pairs of states and range rates up to 0.9 c the results agree with NAIF SPICE (vnorm, dvnorm), astropy's Doppler equivalencies, NumPy and mpmath at 40 digits within 8.3e-16 of their natural scale.

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 177 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_doppler-0.1.0-py3-none-any.whl

In Python: import star_doppler

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_doppler_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-doppler}: Range, range rate and one-way Doppler shift},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_doppler/},
  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-doppler @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_doppler"

README · tests · evidence (GitHub)

Technical sheet

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

Requirements

  • R1 range_and_rate(r_observer, v_observer, r_target, v_target) returns the distance and the component of the relative velocity along the line of sight, positive when the two move apart. Any frame and units, the same for all.
  • R2 received_frequency(frequency, range_rate, relativistic=True) returns f sqrt((1 − b)/(1 + b)) with b = range_rate / c, or the first-order f (1 − b) with relativistic=False; C_KM_S = 299792.458 km/s.
  • R3 Measured on 600 pairs of states and range rates up to 0.9 c: range, range rate and both frequencies agree with NAIF SPICE (vnorm, dvnorm), astropy's Doppler equivalencies, NumPy and mpmath at 40 digits within 8.3e-16 of their natural scale (the relative speed for the range rate).
  • R4 Every function returns floats or raises ValueError: vectors that are not three finite numbers within 1e15, coincident positions, a frequency that is not positive and finite, a range rate that reaches the speed of light, relativistic that is not a bool.

Limits (what is not claimed)

A geometric, instantaneous, one-way result: no light-time correction (the states must already refer to the right instants), no two-way or coherent turn-around ratio, no transverse relativistic term (the relativistic formula is exact only for motion along the line of sight; the neglected term is of order (v/c)², the same order as the difference between the two formulas), no gravitational shift, no troposphere or ionosphere, no oscillator error. For a low orbit those omissions are of the order of a hertz at S band: enough to plan a receiver bandwidth, not to do orbit determination.

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_doppler.py 0.963 (2026-10-07)
Independent implementations written by others (needs 2)
astropy Doppler equivalencies, NAIF SPICE vnorm / dvnorm, numpy
Also compared with, not counted
S.T.A.R.'s own re-derivations: mpmath at 40 digits
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Unit testsVERIFIED2026-10-07177 passed in 1.40s
ReviewVERIFIED2026-10-07Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed
ReviewVERIFIED2026-10-07Re-running the cross-check gives a byte-identical evidence file
Reference valueVERIFIED2026-10-07received_frequency(1000.0, 0.6 * C_KM_S) = 500.0; range_and_rate((0,0,0), (0,0,0), (3,4,0), (1,0,0)) = (5.0, 0.6) (suite: 177 passed in 1.40s)
Cross-check with independent librariesVERIFIED2026-10-07star_doppler returns the range and range rate between two states and the frequency received over that link, relativistic or first order
BenchmarkVERIFIED2026-10-07largest scaled difference from mpmath at 40 digits: 8.3e-16
Clean install from the release tagVERIFIED2026-10-07pytest outside the tree: 177 passed in 1.78s

Fingerprints (SHA-256)

star_doppler-0.1.0-py3-none-any.whl271e2accdcdd4a612d9d25877364ed040ceb7361457f5a1c8c08b4c65ce77583
star_doppler.py49a6510401642b89f441d9ad486cc43a44af31efb7d038f876fdf889141e57fa
star_doppler-0.1.0-source.zipd1b1023c92a0fbedf6a3a059b6d58102a2b7895b0795f48684003c11bfd11262

results