star-precession 0.1.0
Between J2000 and the mean equator of date (IAU 1976)
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
IAU 1976 precession matrix and vector rotations between J2000 and the mean equator and equinox of date over 1800-2200; equal to ERFA pmat76 to 1.2e-16 and within 0.21 arcsec of PyEphem's own precession.
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 32 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_precession-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_precession.py 4 kB
- Source code (.zip) 16 kB
python -m pip install star_precession-0.1.0-py3-none-any.whlIn Python: import star_precession
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_precession_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-precession}: Between J2000 and the mean equator of date (IAU 1976)},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_precession/},
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-precession @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_precession"
Technical sheet
Requirements
- R1
precession_matrix(jd_day, jd_frac=0): P = R3(-z) R2(theta) R3(-zeta) with the Lieske (1979) angles; identity at J2000.0. Reproduces the SOFA validation values ofpmat76to 1e-15. - R2
mod_from_j2000(r, ...),j2000_from_mod(r, ...)(the transpose) andprecession_angles_arcsec. - R3 Measured on 500 dates over 1800-2200: every matrix element within 1.2e-16 of ERFA; 1500 directions within 0.21 arcsec of PyEphem, which carries its own precession code.
- R4 Every function returns finite floats or raises
ValueError: non-numeric, boolean, NaN or infinite input, a vector that is not three finite numbers, a date outside 1800-01-01 to 2200-01-01.
Limits (what is not claimed)
IAU 1976 only: not the IAU 2006 precession (they differ by about 0.3 arcsec per century), no nutation (up to 17 arcsec), no frame bias between J2000 and GCRF (17 milliarcseconds). Enough for vectors known to a hundredth of a degree; not for arcsecond astrometry.
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_precession.py 0.982 (2026-10-06)
- Independent implementations written by others (needs 2)
- ERFA pmat76 (C, the open SOFA), PyEphem libastro epoch conversion
- Also compared with, not counted
- published values: SOFA validation values of pmat76
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 32 passed in 0.16s |
| Unit tests | VERIFIED | 2026-10-06 | 32 passed in 0.46s |
| 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 | the three published elements and element [2][2] reproduced within 1e-15 (suite: 32 passed in 0.46s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_precession reproduces the IAU 1976 precession of two independent implementations over 1800-2200 |
| Benchmark | VERIFIED | 2026-10-06 | ERFA: max element difference 1.1e-16; PyEphem: max direction difference 2.05e-01 arcsec |
Fingerprints (SHA-256)
| star_precession-0.1.0-py3-none-any.whl | bfb71f438db06f21363eec177aa6c48fbb06fa43199e81799b0ebed16d092ab1 |
| star_precession.py | 5ed6d2722b7804a546434851509529d0197698a6a5cd04da6fdb4d94b650c938 |
| star_precession-0.1.0-source.zip | c4942a2956acb37701e17d94000c3cafae9a60deb7ca110a35eb1e8a447973a3 |
