star-elements 0.2.4
Elementi orbitali classici da e verso lo stato cartesiano (algoritmi 4.2 / 4.5 di Curtis)
Stato pubblico: Rilasciato e verificato. L'etichetta nel registro è RELEASED. Che cosa significano gli stati →
Apache-2.0 Rilasciato e verificato file singolo
Sintesi
Elementi orbitali classici da e verso lo stato cartesiano. Solo libreria standard.
Esegui nel browser
Modifica il codice e premi Esegui (o Ctrl+Invio). Python gira nel tuo browser con il codice pubblicato di questo pacchetto. La prima volta scarica Python una sola volta (circa 12 MB).
Funziona nel browser: tutti i 87 test passano nel Python del browser (Pyodide 314.0.7, Python 3.14.2), misurato il 20 ottobre 2026.
Usalo sul tuo computer
Non servono account né GitHub. Scarica, poi installa con un comando:
- File di installazione · star_elements-0.2.4-py3-none-any.whl 4 kB
- File singolo — da copiare accanto al tuo codice · star_elements.py 7 kB
- Codice sorgente (.zip) 19 kB
python -m pip install star_elements-0.2.4-py3-none-any.whlIn Python: import star_elements
Citarlo, e la sua distinta dei componenti
Per un articolo, una relazione o un fascicolo fornitore: la citazione in due formati e la distinta dei componenti software (SBOM) nei due formati standard, con l'impronta del wheel.
@software{cavazzini_star_elements_0_2_4,
author = {Cavazzini, Andrea},
title = {{star-elements}: Elementi orbitali classici da e verso lo stato cartesiano (algoritmi 4.2 / 4.5 di Curtis)},
version = {0.2.4},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_elements/},
note = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}
Per sviluppatori
Installa direttamente dal repository pubblico:
python -m pip install "star-elements @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_elements"
Scheda tecnica
Requisiti
- R1
rv_to_coe(r, v, mu=398600.4418) -> (h, e, i, raan, argp, nu)(algoritmo 4.2 di Curtis); unità km, km/s, radianti. - R2
coe_to_rv(h, e, i, raan, argp, nu, mu) -> (r, v)(algoritmo 4.5 di Curtis). - R3 I casi singolari o non validi sollevano
ValueError: equatoriale (nessuna RAAN), circolare (nessun argomento del pericentro), rettilineo, h <= 0, anomalia vera iperbolica oltre gli asintoti. Non viene mai restituito un angolo arbitrario per un elemento non definito. - R4 (0.2.0) Anomalie per 0 <= e < 1:
mean_to_eccentric(Keplero, Newton; RuntimeError se non converge),eccentric_to_true,true_to_eccentric,eccentric_to_mean; e >= 1 sollevaValueError.
Limiti (che cosa non si afferma)
Anomalie iperboliche/paraboliche, elementi equinoziali o altri insiemi non singolari (necessari per orbite equatoriali/circolari), elementi medi, qualsiasi uso in volo.
Cancello di rilascio
Calcolato dal registro dai file dei risultati, con la stessa funzione che decide RELEASED.
- Punteggio di mutazione, ultima misura di ogni modulo (serve almeno 0,850)
- star_anomaly.py 0,937 (2026-10-07)
- Implementazioni indipendenti scritte da altri (ne servono 2)
- hapsira.core.angles, Orekit KeplerianAnomalyUtility, poliastro/hapsira angles
- Confrontato anche con, non contati
- ri-derivazioni di S.T.A.R.: Kepler's equation and half-angle relations at 50 digits in mpmath (same author), S.T.A.R. Newton (Vallado Alg. 2 start)
- Esito
- Rilasciato e verificato
I nomi delle implementazioni e dei riferimenti sono citati dal registro nella lingua in cui sono scritti, l'inglese.
Evidenze nel registro
| Controllo | Stato | Registrato | Che cosa è stato osservato |
|---|---|---|---|
| Test unitari | VERIFIED | 2026-10-07 | 32 passed in 0.61s |
| Revisione | VERIFIED | 2026-10-07 | Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed |
| Revisione | VERIFIED | 2026-10-07 | Re-running the cross-check gives a byte-identical evidence file |
| Valori di riferimento pubblicati | VERIFIED | 2026-10-07 | degrees(eccentric_from_mean(radians(235.4), 0.4)) = 220.51207476752208; hyperbolic_from_mean(radians(235.4), 2.4) = 1.6013761449325081 (suite: 32 passed in 0.61s) |
| Confronto con librerie indipendenti | VERIFIED | 2026-10-07 | star_anomaly solves Kepler's equation and converts between mean, eccentric, hyperbolic and true anomaly to within 1e-13 rad of 50-digit arithmetic, nearly parabolic orbits included |
| Benchmark | VERIFIED | 2026-10-07 | largest difference from 50-digit arithmetic: 8.9e-15 rad; hapsira on nearly parabolic orbits: 5.4e-14 rad; Orekit: 7.1e-08 rad |
| Installazione pulita dal tag di rilascio | VERIFIED | 2026-10-07 | pytest outside the tree: 32 passed in 0.41s |
| Test di mutazione | VERIFIED | 2026-10-04 | before 216/266 = 0.812; after 224/262 = 0.855 (38 survivors, mostly equivalent: clamp constants, zero z-column of Q, Newton start/tolerance) |
| Revisione | VERIFIED | 2026-10-03 | Re-execution of bench.xc-010 reproduces the committed evidence bundles |
| Revisione | VERIFIED | 2026-10-03 | Re-execution of bench.xc-009 reproduces the committed evidence bundles |
| Confronto con librerie indipendenti | VERIFIED | 2026-10-03 | star_elements and hapsira agree on [E, nu] for 20 (M, e) cases plus the Vallado case |
| Benchmark | VERIFIED | 2026-10-03 | 21/21 AGREE, reference deviation 4.8e-10 deg, reproduced by star verify |
| Valori di riferimento pubblicati | VERIFIED | 2026-10-03 | 220.512074767 deg, deviation < 1e-9 deg; Curtis Ex. 3.2 within 5e-5 rad |
| Test unitari | VERIFIED | 2026-10-03 | 8/8 anomaly tests pass (14/14 in the package) |
Le osservazioni sono citate dal registro nella lingua in cui sono state scritte, l'inglese: tradurle cambierebbe il testo che il registro firma.
Impronte (SHA-256)
| star_elements-0.2.4-py3-none-any.whl | bb7b96a3fbd632fd7cf99f4ebb30eb90a23fbffaa237e4e33286bd343599518f |
| star_elements.py | 7b54ae0a1b1796edbc6cc38206d431dec18e3024b95a99fa76c3846e98002044 |
| star_elements-0.2.4-source.zip | c183181a0a3fd64c534d8cfabe32e2b0cec9f9df126fe5927c6737fc0dce2ba3 |
