Validation and regressions
Inspect the recorded numerical comparisons and run them locally after a model change.
References and limits
C++ reference SGP4 checks TEME positions, velocities, and validity over the catalog. poliastro, Brahe, Astropy, and JPL independently check orbital geometry, force models, and astronomical positions. Limits vary by check and appear with each result.
Run the checks
Quick validation runs on commits that change math and validation files. Full validation runs before such changes are pushed. Review intentional changes to the fixed-fixture baseline before accepting them.
npm test
npm run regress -- --quick
npm run regress
npm run regress -- --acceptRecorded results
183 of 183 comparisons passed in the recorded full run.
| Check | Difference | Limit | Result |
|---|---|---|---|
| poliastro · KeplerKepler e=0, M=-3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0, M=-0.4 | 1.110e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0, M=0.03 | 1.943e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0, M=1.75 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0, M=3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.02, M=-3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.02, M=-0.4 | 1.110e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.02, M=0.03 | 1.978e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.02, M=1.75 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.02, M=3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.45, M=-3 | 4.441e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.45, M=-0.4 | 3.331e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.45, M=0.03 | 3.539e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.45, M=1.75 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.45, M=3 | 4.441e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.85, M=-3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.85, M=-0.4 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.85, M=0.03 | 1.193e-15 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.85, M=1.75 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.85, M=3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.99, M=-3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.99, M=-0.4 | 2.220e-16 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.99, M=0.03 | 1.554e-15 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.99, M=1.75 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · KeplerKepler e=0.99, M=3 | 0.000 rad | 5e-12 rad | Pass |
| poliastro · ElementsLEO initial state | 1.017e-12 km | 1e-8 km | Pass |
| poliastro · Two-bodyLEO / Farnocchia / 0.0333333 h | 2.947e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Farnocchia / 1 h | 7.717e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Farnocchia / 24 h | 1.210e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Farnocchia / 240 h | 1.099e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Vallado / 0.0333333 h | 4.776e-7 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Vallado / 1 h | 2.237e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Vallado / 24 h | 0.000001217 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Vallado / 240 h | 5.692e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Danby / 0.0333333 h | 4.547e-13 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Danby / 1 h | 7.050e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Danby / 24 h | 1.899e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyLEO / Danby / 240 h | 9.784e-10 km | 0.002 km | Pass |
| poliastro · J2LEO plane drift | 0.3834 % | 1.25 % | Pass |
| poliastro · ElementsPolar initial state | 9.253e-13 km | 1e-8 km | Pass |
| poliastro · Two-bodyPolar / Farnocchia / 0.0333333 h | 1.190e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Farnocchia / 1 h | 4.124e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Farnocchia / 24 h | 4.254e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Farnocchia / 240 h | 4.180e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Vallado / 0.0333333 h | 6.377e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Vallado / 1 h | 2.906e-8 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Vallado / 24 h | 1.276e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Vallado / 240 h | 1.418e-8 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Danby / 0.0333333 h | 3.875e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Danby / 1 h | 2.071e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Danby / 24 h | 3.301e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyPolar / Danby / 240 h | 4.465e-9 km | 0.002 km | Pass |
| poliastro · J2Polar plane drift | 0.5519 % | 1.25 % | Pass |
| poliastro · ElementsNavigation initial state | 9.275e-12 km | 1e-8 km | Pass |
| poliastro · Two-bodyNavigation / Farnocchia / 0.0333333 h | 2.034e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Farnocchia / 1 h | 1.927e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Farnocchia / 24 h | 3.906e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Farnocchia / 240 h | 2.564e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Vallado / 0.0333333 h | 8.010e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Vallado / 1 h | 3.750e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Vallado / 24 h | 6.545e-8 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Vallado / 240 h | 1.701e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Danby / 0.0333333 h | 2.747e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Danby / 1 h | 1.315e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Danby / 24 h | 3.451e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyNavigation / Danby / 240 h | 2.822e-9 km | 0.002 km | Pass |
| poliastro · J2Navigation plane drift | 0.02884 % | 1.25 % | Pass |
| poliastro · ElementsElliptic initial state | 5.981e-12 km | 1e-8 km | Pass |
| poliastro · Two-bodyElliptic / Farnocchia / 0.0333333 h | 6.252e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Farnocchia / 1 h | 1.121e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Farnocchia / 24 h | 6.326e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Farnocchia / 240 h | 2.999e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Vallado / 0.0333333 h | 1.799e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Vallado / 1 h | 1.905e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Vallado / 24 h | 5.161e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Vallado / 240 h | 1.807e-9 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Danby / 0.0333333 h | 1.054e-11 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Danby / 1 h | 5.225e-12 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Danby / 24 h | 7.594e-10 km | 0.002 km | Pass |
| poliastro · Two-bodyElliptic / Danby / 240 h | 3.651e-9 km | 0.002 km | Pass |
| poliastro · SGP4 dynamicsLEO gravity-only maximum separation | 2.423 km | 3.5 km | Pass |
| poliastro · SGP4 dynamicsPolar gravity-only maximum separation | 8.317 km | 12 km | Pass |
| poliastro · SGP4 dynamicsNavigation gravity-only maximum separation | 2.427 km | 30 km | Pass |
| Brahe · Independent geometryLEO Cartesian position | 4.660e-12 km | 1e-7 km | Pass |
| Brahe · Independent geometryLEO Cartesian velocity | 2.850e-9 km/s | 1e-8 km/s | Pass |
| Brahe · JGM3LEO plane drift | 0.3873 % | 2 % | Pass |
| Brahe · Independent geometryPolar Cartesian position | 3.247e-12 km | 1e-7 km | Pass |
| Brahe · Independent geometryPolar Cartesian velocity | 2.805e-9 km/s | 1e-8 km/s | Pass |
| Brahe · JGM3Polar plane drift | 0.5531 % | 2 % | Pass |
| Brahe · Independent geometryNavigation Cartesian position | 1.045e-11 km | 1e-7 km | Pass |
| Brahe · Independent geometryNavigation Cartesian velocity | 1.463e-9 km/s | 1e-8 km/s | Pass |
| Brahe · JGM3Navigation plane drift | 0.05152 % | 2 % | Pass |
| Brahe · Independent geometryElliptic Cartesian position | 5.881e-12 km | 1e-7 km | Pass |
| Brahe · Independent geometryElliptic Cartesian velocity | 2.863e-9 km/s | 1e-8 km/s | Pass |
| C++ SGP4 · Whole catalog-48 h / 11,880 objects / position | 0.000001205 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog-48 h / 11,880 objects / velocity | 1.379e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog-48 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| C++ SGP4 · Whole catalog-24 h / 11,880 objects / position | 0.000001204 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog-24 h / 11,880 objects / velocity | 1.375e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog-24 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| C++ SGP4 · Whole catalog+0 h / 11,880 objects / position | 0.000001204 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog+0 h / 11,880 objects / velocity | 1.378e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog+0 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| C++ SGP4 · Whole catalog+1 h / 11,880 objects / position | 0.000001205 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog+1 h / 11,880 objects / velocity | 1.379e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog+1 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| C++ SGP4 · Whole catalog+6 h / 11,880 objects / position | 0.000001205 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog+6 h / 11,880 objects / velocity | 1.379e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog+6 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| C++ SGP4 · Whole catalog+24 h / 11,880 objects / position | 0.000001205 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog+24 h / 11,880 objects / velocity | 1.379e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog+24 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| C++ SGP4 · Whole catalog+48 h / 11,880 objects / position | 0.000001205 km | 0.000025 km | Pass |
| C++ SGP4 · Whole catalog+48 h / 11,880 objects / velocity | 1.380e-9 km/s | 5e-8 km/s | Pass |
| C++ SGP4 · Whole catalog+48 h / 11,880 objects / validity mismatch | 0.000 objects | 0 objects | Pass |
| Astropy · Solar position2000-03-20 solar direction | 0.003234 deg | 0.025 deg | Pass |
| Astropy · Solar position2016-06-23 solar direction | 0.006433 deg | 0.025 deg | Pass |
| Astropy · Solar position2022-08-07 solar direction | 0.005940 deg | 0.025 deg | Pass |
| poliastro · Eclipse geometry6800 km umbra entry | 0.003465 s on circular orbit | 2 s on circular orbit | Pass |
| poliastro · Eclipse geometry7600 km umbra entry | 0.007121 s on circular orbit | 2 s on circular orbit | Pass |
| poliastro · Eclipse geometry26560 km umbra entry | 0.2920 s on circular orbit | 2 s on circular orbit | Pass |
| poliastro · Eclipse geometry42164 km umbra entry | 0.9545 s on circular orbit | 2 s on circular orbit | Pass |
| Brahe · StationsWallops / LEO topocentric angles | 6.574e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsWallops / LEO boundaries | 0.01268 s | 0.08 s | Pass |
| Brahe · StationsWallops / Polar topocentric angles | 9.431e-9 deg | 0.00002 deg | Pass |
| Brahe · StationsWallops / Polar boundaries | 0.01382 s | 0.08 s | Pass |
| Brahe · StationsWallops / Navigation topocentric angles | 2.167e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsWallops / Navigation boundaries | 0.01335 s | 0.08 s | Pass |
| Brahe · StationsCanberra / LEO topocentric angles | 2.724e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsCanberra / LEO boundaries | 0.01396 s | 0.08 s | Pass |
| Brahe · StationsCanberra / Polar topocentric angles | 1.327e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsCanberra / Polar boundaries | 0.01149 s | 0.08 s | Pass |
| Brahe · StationsCanberra / Navigation topocentric angles | 2.286e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsCanberra / Navigation boundaries | 0.01020 s | 0.08 s | Pass |
| Brahe · StationsKourou / LEO topocentric angles | 2.828e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsKourou / LEO boundaries | 0.01381 s | 0.08 s | Pass |
| Brahe · StationsKourou / Polar topocentric angles | 9.159e-9 deg | 0.00002 deg | Pass |
| Brahe · StationsKourou / Polar boundaries | 0.009506 s | 0.08 s | Pass |
| Brahe · StationsKourou / Navigation topocentric angles | 1.861e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsKourou / Navigation boundaries | 0.01031 s | 0.08 s | Pass |
| Brahe · StationsMadrid / LEO topocentric angles | 2.775e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsMadrid / LEO boundaries | 0.01427 s | 0.08 s | Pass |
| Brahe · StationsMadrid / Polar topocentric angles | 1.080e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsMadrid / Polar boundaries | 0.01384 s | 0.08 s | Pass |
| Brahe · StationsMadrid / Navigation topocentric angles | 2.518e-8 deg | 0.00002 deg | Pass |
| Brahe · StationsMadrid / Navigation boundaries | 0.01443 s | 0.08 s | Pass |
| Coverage · Geometry0h / 0° elevation / 90° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry0h / 10° elevation / 55° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry0h / 35° elevation / 30° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry6h / 0° elevation / 90° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry6h / 10° elevation / 55° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry6h / 35° elevation / 30° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry12h / 0° elevation / 90° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry12h / 10° elevation / 55° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry12h / 35° elevation / 30° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry18h / 0° elevation / 90° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry18h / 10° elevation / 55° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry18h / 35° elevation / 30° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry24h / 0° elevation / 90° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry24h / 10° elevation / 55° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry24h / 35° elevation / 30° cone | 0.000 cells | 0 cells | Pass |
| Coverage · Geometry400 km footprint boundary | 5.507e-14 deg | 1e-9 deg | Pass |
| Coverage · Geometry1200 km footprint boundary | 5.329e-15 deg | 1e-9 deg | Pass |
| Coverage · Geometry20200 km footprint boundary | 0.000 deg | 1e-9 deg | Pass |
| Lunar ephemerisDE440s off-grid positions | 0.08281 km | 0.3 km | Pass |
| Brahe · Relative motionPolar relative to LEO | 1.017e-12 km | 1e-8 km | Pass |
| Brahe · Relative motionNavigation relative to LEO | 9.375e-13 km | 1e-8 km | Pass |
| Brahe · Relative motionElliptic relative to LEO | 9.375e-13 km | 1e-8 km | Pass |
| Brahe · EGM2008Point 1 / degree 2 | 1.290e-16 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 1 / degree 20 | 9.250e-16 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 2 / degree 2 | 5.424e-17 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 2 / degree 20 | 1.519e-16 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 3 / degree 2 | 1.127e-19 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 3 / degree 20 | 7.330e-20 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 4 / degree 2 | 1.077e-19 km/s² | 3e-11 km/s² | Pass |
| Brahe · EGM2008Point 4 / degree 20 | 1.316e-19 km/s² | 3e-11 km/s² | Pass |
| Brahe · Numerical flight1 h trajectory | 0.00002435 km | 0.04 km | Pass |
| Brahe · Numerical flight24 h trajectory | 0.0009084 km | 0.04 km | Pass |
| poliastro · ManeuversHohmann to altitude 1100 km | 5.690e-16 km/s | 1e-7 km/s | Pass |
| poliastro · ManeuversHohmann to altitude 15000 km | 2.220e-16 km/s | 1e-7 km/s | Pass |
| Numerical flight · Rocket equationFinite 25 m/s impulse fuel | 1.279e-13 kg | 1e-7 kg | Pass |
| Brahe · Walker patternsWalker Delta | 1.137e-13 deg | 1e-9 deg | Pass |
| Brahe · Walker patternsWalker Star | 1.137e-13 deg | 1e-9 deg | Pass |