← All packages

Frames & geometry

star-rotframe 0.1.0

Position and velocity between an inertial and a rotating frame

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

Apache-2.0 Released & Verified single file

Summary

Position and velocity between an inertial frame and a frame rotating about z at a given angle and rate, transport term included, in both directions; on 600 states there and back the results agree with NAIF SPICE (rav2xf), SciPy and astropy within 5.2e-16 of |r| and of |v| + |rate| |r|.

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 96 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_rotframe-0.1.0-py3-none-any.whl

In Python: import star_rotframe

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_rotframe_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-rotframe}: Position and velocity between an inertial and a rotating frame},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_rotframe/},
  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-rotframe @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_rotframe"

README · tests · evidence (GitHub)

Technical sheet

Package
star-rotframe
Import name
star_rotframe
Version
0.1.0
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.frames.rotating-z
Maturity
Released & Verified (RELEASED)
Published commit
dc09f61d

Requirements

  • R1 to_rotating(r, v, angle, rate) returns r' = Rz(angle) r and v' = Rz(angle) v − w × r', with w = (0, 0, rate): the velocity seen in the rotating frame, transport term included. angle is in radians, about +z.
  • R2 to_inertial is the exact inverse. The default rate is the WGS-84 angular velocity of the Earth, EARTH_RATE = 7.292115e-5 rad/s; any other rate, of either sign, can be given.
  • R3 Measured on 600 states (orbits in km and in metres, random magnitudes, angles up to 1e8 rad, rates up to 0.1 rad/s), there and back: agreement with NAIF SPICE (rav2xf), SciPy and astropy within 5.2e-16 of |r| and of |v| + |rate| |r|; round trip within 3.4e-16.
  • R4 Every function returns two tuples of three floats or raises ValueError: vectors that are not three finite numbers within 1e15, an angle or a rate that is not finite or is out of range, booleans.

Limits (what is not claimed)

A rotation about one fixed axis at a constant rate. For the Earth this leaves out polar motion, precession, nutation and the variation of the length of day: this module is NOT a full ICRS-to-ITRS transformation, and the angle (Earth Rotation Angle or sidereal time) must come from elsewhere (see star_era in this repository). Over a day the neglected terms move a ground point by metres to tens of metres. No acceleration (Coriolis and centrifugal terms) is returned. Units are whatever the caller uses, consistently.

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_rotframe.py 0.984 (2026-10-07)
Independent implementations written by others (needs 2)
astropy rotation_matrix, NAIF SPICE rotate / rav2xf / invstm, scipy.spatial.transform.Rotation
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Clean install from the release tagVERIFIED2026-10-07pytest outside the tree: 96 passed in 0.29s
Unit testsVERIFIED2026-10-0796 passed in 0.53s
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-07to_rotating((0, 6378.137, 0), (-w R, 0, 0), pi/2) = ((6378.137, 0.0, 0.0), (0.0, 0.0, 0.0)) within 1e-12 (suite: 96 passed in 0.53s)
Cross-check with independent librariesVERIFIED2026-10-07star_rotframe converts position and velocity between an inertial frame and a frame rotating about z, transport term included, in both directions
BenchmarkVERIFIED2026-10-07largest scaled difference from SPICE: 3.1e-16

Fingerprints (SHA-256)

star_rotframe-0.1.0-py3-none-any.whld7aaea061958485f24123ae989346f2aa0d7cf58bc29e347037fe0f363b4c9c9
star_rotframe.pya7e8682356b258cd2b7ed91f3f67657d8f0b25ce4afa2ee1c93e8d7b77506cd2
star_rotframe-0.1.0-source.zip55685fb2f3de7cd5ba8d396c21b66d9544e5f95301a4be4c63aaa5d6ffe947b2

results