star-j2 0.1.0
What the Earth's oblateness does to an orbit, on average
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
First-order secular effect of J2 on mean elements: node regression, perigee rotation, mean-anomaly rate, nodal period, sun-synchronous inclination; measured within 0.4 % of Orekit's Eckstein-Hechler theory and of a numerical integration.
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 28 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_j2-0.1.0-py3-none-any.whl 3 kB
- Single file — copy it alongside your code · star_j2.py 5 kB
- Source code (.zip) 18 kB
python -m pip install star_j2-0.1.0-py3-none-any.whlIn Python: import star_j2
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_j2_0_1_0,
author = {Cavazzini, Andrea},
title = {{star-j2}: What the Earth's oblateness does to an orbit, on average},
version = {0.1.0},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_j2/},
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-j2 @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_j2"
Technical sheet
Requirements
- R1
raan_rate_deg_day,argp_rate_deg_day,mean_anomaly_rate_deg_day,nodal_period_sfor mean elements (a in km, e, inclination in degrees), EGM96/WGS-84 constants by default, overridable by keyword. - R2
sun_synchronous_inclination_deg(a_km, e=0): the inclination whose node advances 360 degrees per tropical year;CRITICAL_INCLINATION_DEG= 63.4349...: the perigee does not rotate. - R3 Accuracy, measured on 51 orbits: node rate within 0.31 % of Orekit's Eckstein-Hechler theory (J2 only, mean elements) and within 0.38 % of a numerical integration of the equations of motion with J2; perigee rate within 0.013 deg/day of the numerical integration. The formulas are first order in J2: differences of this size are the model, not a rounding error.
- R4 Every function returns a finite float or raises
ValueError: non-numeric, boolean, NaN or infinite input; a <= 0; e outside [0, 1); inclination outside [0, 180]; perigee inside the Earth; non-positive mu, re or j2; an orbit too high to be sun-synchronous (above about 12 350 km semi-major axis for a circular orbit).
Limits (what is not claimed)
Mean rates only: no short-period terms, no J2-squared, J3 or higher harmonics, no drag, no third bodies. Not a propagator. For mission design at the 0.5 % level; a station-keeping budget needs a full theory or an integration.
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_j2.py 0.943 (2026-10-06)
- Independent implementations written by others (needs 2)
- Orekit EcksteinHechlerPropagator (analytical theory, J2 only), SciPy DOP853 integration of the J2 equations of motion
- Also compared with, not counted
- published values: textbook figures (critical inclination, ISS node regression, sun-synchronous inclinations)
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Unit tests | VERIFIED | 2026-10-06 | 28 passed in 1.16s |
| 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 | critical inclination 63.43494882 deg; ISS-like orbit -5.0023 deg/day; 98.603 deg at 800 km; 97.402 deg at 500 km (suite: 28 passed in 1.16s) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_j2 secular rates agree with an analytical theory and with a numerical integration within the order of the model |
| Benchmark | VERIFIED | 2026-10-06 | largest absolute node-rate difference: Orekit 0.024 deg/day, numerical 0.029 deg/day; ISS-like probe: Orekit -5.0063, numerical -5.0209 deg/day |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 28 passed in 0.67s |
Fingerprints (SHA-256)
| star_j2-0.1.0-py3-none-any.whl | 53948a19eb367cae41ffaf2cda736c51497efdbe7730f3a2d087e93c94f69aa3 |
| star_j2.py | e97f9628cbc4ebb6cbfcf5c74143e1bc5a7dce2ba68e3192b2a4c259b82d460f |
| star_j2-0.1.0-source.zip | 5b26ec710e4c30567c35f8c55498673d3aa5181835922952017183b495f73755 |
