Orbis.SGP4 (Orbis v0.9.1)

Copy Markdown View Source

SGP4/SDP4 orbit propagation from Two-Line Element sets.

Summary

Functions

Propagate a TLE to a specific datetime, returning a TEME state vector.

Functions

propagate(tle, datetime)

@spec propagate(Orbis.Elements.t(), DateTime.t()) ::
  {:ok, Orbis.TemeState.t()} | {:error, String.t()}

Propagate a TLE to a specific datetime, returning a TEME state vector.

Uses the sgp4 Rust crate in AFSPC compatibility mode. Elements are passed as individual fields, so this works for both TLE and OMM inputs.

Returns {:ok, %Orbis.TemeState{}} with position in km and velocity in km/s, or {:error, reason}.