Skip to content

Latest commit

 

History

History

spacedatalab-python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

spacedatalab

PyPI Python crates.io docs.rs ci wheels License Rust core · PyO3

Website · Source · spacelab core · Verification ledger · Releases

Python bindings for spacelab, astrodynamics in Rust with the verification as the deliverable. SGP4, numerical and semi-analytical propagation, GNSS, orbit determination, coverage and constellation design, Earth observation and SAR. Mathematics decides what is correct, every check is written down with its residual, and other codes are comparisons, never the proof. One abi3 wheel per platform, no runtime dependencies.

pip install spacedatalab
import spacedatalab as sdl

l1 = "1 25544U 98067A   08264.51782528 -.00002182  00000-0 -11606-4 0  2927"
l2 = "2 25544  51.6416 247.4627 0006703 130.5360 325.0288 15.72125391563537"
r, v = sdl.sgp4_propagate(l1, l2, 0.0)  # TEME position (m) and velocity (m/s)

spacedatalab is the Python entry point of SpaceDataLab: its top level is the spacelab core, and later SpaceDataLab products arrive as submodules.

What it is compared against

SGP4 against python-sgp4 GCRF to ITRF against ERFA
SGP4 against python-sgp4 over 24 h: at most 250 nm (ISS) and 240 nm (GPS); 3 % of the samples agree to the bit. Both run Vallado's SGP4, so this pins units, epochs and frames. The CIO chain against ERFA's identical route, 1900–2100: at most 0.012 µas, 360 nm on the ground. ERFA's matrix route differs by up to 3.7 µas: two formulations of one model, not an error.
Brute-force sampling against the event engine Coverage map with the analytic reach
108 cells, 24 h: at a 1 s step brute force finds 417 of 417 passes and agrees on coverage to 0.0045 %; at 600 s it misses 79. The engine needs no step: it brackets every edge and refines it to 1 ms. The engine's coverage of 10368 cells ends at 71.25° latitude, the last cell inside the analytic reach of the 5° mask, 71.5° (dashed).

What is exposed

  • Propagation: SGP4, Kepler, Lambert, Brouwer-Lyddane, DSST (mean and osculating), and numerical propagation with the geopotential, tides, relativity, drag and luni-solar forces.
  • Environment: NRLMSISE-00 and SDTM-1 density, space weather, IGRF, NeQuick-G, Klobuchar, Saastamoinen, and the Niell, GMF and VMF mapping functions.
  • Frames and astrometry: TEME, GCRF, ITRF and geodetic transforms, aberration, refraction.
  • Measurements and estimation: range, range-rate, TDOA/FDOA, DSN observables, Gauss-Newton, GNSS combinations, cycle slips and ambiguity resolution, collision probability.
  • Mission design: Walker, Street-of-Coverage, Flower and Draim constellations, coverage metrics, access windows, sun-synchronous and repeat-ground-track orbits, the CR3BP libration points and halo seeds.
  • GNSS: orbits from RINEX navigation files, DOP, GLONASS frequencies.
  • Earth observation and SAR: swath geometry, atmospheric correction, BRDF kernels, phase unwrapping, interferometry, chirp-scaling focusing, PS/SBAS, stereo and pan-sharpening.
  • Control: attitude laws and margins, LQR, Clohessy-Wiltshire, consensus on graphs.

Wheels

One abi3 wheel per platform covers CPython 3.11 to 3.14; an abi3.abi3t wheel covers 3.15 and the free-threaded 3.15t. Built for Linux (x86_64, aarch64; manylinux 2.28), macOS (arm64, x86_64) and Windows (x64). Other platforms build from the sdist with a Rust toolchain.

Licence

Licensed under either of Apache-2.0 or MIT at your option. Third-party attributions are in NOTICE.