← All packages

Orbits & astrodynamics

star-cw 0.1.0

Relative motion near a circular orbit (Clohessy-Wiltshire)

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

Apache-2.0 Released & Verified single file

Summary

Closed-form Clohessy-Wiltshire transition matrix, free drift and two-impulse rendezvous in the chief's rotating frame; algebra equal to the matrix exponential within 1.1e-13, departure from real two-body motion measured per separation, singular transfer times refused.

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 40 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_cw-0.1.0-py3-none-any.whl

In Python: import star_cw

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_cw_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-cw}: Relative motion near a circular orbit (Clohessy-Wiltshire)},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_cw/},
  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-cw @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_cw"

README · tests · evidence (GitHub)

Technical sheet

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

Requirements

  • R1 Frame and state: x radial outward, y along the velocity, z along the orbit normal, origin at the chief; state (x, y, z, vx, vy, vz) relative to the rotating frame; n in rad/s; any consistent length unit.
  • R2 stm(n, t) (6x6) and propagate(state, n, t): the closed-form solution; agrees with SciPy's matrix exponential of the system matrix within 1.1e-13 relative on 300 states and times up to three revolutions.
  • R3 rendezvous(r0, v0, rf, n, t) returns (dv1, dv2): the impulse now that brings the deputy to the point rf of the rotating frame after t, and the impulse there that stops it relative to rf.
  • R4 Every function returns finite floats of the documented shape or raises ValueError: non-numeric, boolean, NaN, infinite or |value| >= 1e150 input; wrong shapes; n <= 0; t <= 0 for a rendezvous; and the singular transfer times (whole and half revolutions, and the other roots of 8(1 - cos nt) = 3 nt sin nt), where no finite impulse reaches an arbitrary point.

Limits (what is not claimed)

Circular chief only (no Tschauner-Hempel), no J2, drag or thrust arcs, no collision check along the transfer, no optimisation of the transfer time. A found defect is recorded in the module: the first version returned an empty tuple from propagate; the cross-check now refuses answers that do not have six components.

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_cw.py 0.963 (2026-10-06)
Independent implementations written by others (needs 2)
NAIF CSPICE prop2b: two full Keplerian orbits differenced, SciPy matrix exponential of the Clohessy-Wiltshire system matrix
Also compared with, not counted
published values: textbook trajectories (hold point, 12 pi drift, 2-by-1 ellipse)
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Unit testsVERIFIED2026-10-0640 passed in 0.53s
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-06hold point unchanged to 1e-12; radial offset drift equal to 12 pi x0 within 1e-9; 2-by-1 ellipse closed after one and seven revolutions (suite: 40 passed in 0.53s)
Cross-check with independent librariesVERIFIED2026-10-06star_cw reproduces the Clohessy-Wiltshire solution exactly and its distance from real two-body motion is measured
BenchmarkVERIFIED2026-10-06largest position difference from full two-body motion by separation: 0.001 km: 9.13e-08 km, 0.1 km: 1.15e-03 km, 10.0 km: 1.21e+01 km
Clean install from the release tagVERIFIED2026-10-06pytest outside the tree: 40 passed in 0.33s

Fingerprints (SHA-256)

star_cw-0.1.0-py3-none-any.whleda4002ea00f051f4e7ccda6ab559179ad9f1edfa9a179d7864aae8b74313674
star_cw.pyf555f308539d79c45c15d29a258b0dde9f5ced0869ef4c3542706611a10e2999
star_cw-0.1.0-source.zip0f2c3c08422d2278f4307d35d0701c2bc346ce83f1a53dba8de2191992e0b39e

results