star-ecliptic 0.1.0
Mean obliquity and equatorial ⇄ ecliptic directions
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Mean obliquity of the ecliptic (IAU 2006 and IAU 1980) and conversion of directions between equatorial and ecliptic frames; agrees with ERFA, astropy and SPICE to 1.1e-13 deg and with ERFA and skyfield to 1.5e-11 arcsec on 600 cases, and refuses out-of-range input.
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 38 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_ecliptic-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_ecliptic.py 4 kB
- Source code (.zip) 18 kB
python -m pip install star_ecliptic-0.1.0-py3-none-any.whlIn Python: import star_ecliptic
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_ecliptic_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-ecliptic}: Mean obliquity and equatorial ⇄ ecliptic directions},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_ecliptic/},
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-ecliptic @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_ecliptic"
Technical sheet
Requirements
- R1
mean_obliquity_arcsec(jd_day, jd_frac, model)evaluates the IAU 2006 (default) or IAU 1980 polynomial in TT Julian centuries from J2000.0, with the date split in day and fraction. Reproduces Meeus Example 22.a. - R2
equatorial_to_eclipticandecliptic_to_equatorialare one rotation about the equinox by the obliquity passed by the caller, and are inverse of each other; longitudes out are in [0, 360). Reproduce Meeus Example 13.a. - R3 Measured on 600 cases (dates 1800–2200, 100 directions down to 1e-6 deg from the pole of the ecliptic): directions within 1.1e-13 deg of ERFA, astropy and SPICE; IAU 2006 obliquity within 1.5e-11 arcsec of ERFA and skyfield; IAU 1980 obliquity within 1.5e-11 arcsec of ERFA.
- R4 Every function returns finite floats or raises
ValueError: non-numeric, boolean, NaN or infinite input, a date outside JD 2086302.5 … 2816787.5 (years 1000–3000), a fraction outside [-1, 1], an unknown model, declination or latitude outside [-90, 90], right ascension or longitude outside [-360, 360], obliquity outside [0, 324000] arcsec.
Limits (what is not claimed)
Mean obliquity only: no nutation (pass a true obliquity if you have one). No precession: the directions stay referred to the equinox they were given in. The IAU 1980 polynomial is compared with one library (ERFA) and one published example, not two libraries. At a pole of the target frame the longitude is undefined and the value returned there is arbitrary (within [0, 360)). The time argument is TT; using UTC instead changes the result by less than 1e-6 arcsec.
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_ecliptic.py 1.000 (2026-10-06)
- Independent implementations written by others (needs 2)
- astropy matrix_utilities.rotation_matrix, ERFA obl80 / obl06 / rx (C), skyfield nutationlib.mean_obliquity (IAU 2006), SPICE pxform J2000 -> ECLIPJ2000
- Also compared with, not counted
- published values: Meeus, Astronomical Algorithms, Example 13.a
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Unit tests | VERIFIED | 2026-10-06 | 38 passed in 0.47s |
| 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 | within 4.7e-7 deg of the printed values (printed to 1e-6) (suite: 38 passed in 0.47s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_ecliptic reproduces the IAU 1980 and IAU 2006 mean obliquity and the equatorial-to-ecliptic rotation of three independent libraries |
| Benchmark | VERIFIED | 2026-10-06 | largest direction difference by lineage: erfa: 1.6e-14 deg; astropy: 7.2e-14 deg; spice: 1.0e-13 deg |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 38 passed in 0.25s |
Fingerprints (SHA-256)
| star_ecliptic-0.1.0-py3-none-any.whl | 4dcb673fda3843e16db5e7b265b582ff449d44783b608c3fac94b96b3ab176d6 |
| star_ecliptic.py | 6ce870a4af69d5fba1bd955150b5c1418b82bc66a818f61237291fd749d70d6e |
| star_ecliptic-0.1.0-source.zip | 8824cd9f464b435f5efd9c5b1f77b8563f60446f18b54242aa8f09e830c81290 |
