View Source SpaceDust.State.TEMEState (Space Dust v0.3.0)
State vector in True Equator Mean Equinox (TEME) reference frame.
TEME is the reference frame used by SGP4/SDP4 propagators. Position and velocity are in kilometers and kilometers/second respectively.
Summary
Functions
Create a TEME state from Nx tensors.
Create a new TEME state from position and velocity tuples.
Convert position and velocity to Nx tensors for numerical operations. Returns {position_tensor, velocity_tensor} as 1D tensors of shape {3}.
Types
Functions
@spec from_tensors(DateTime.t(), Nx.Tensor.t(), Nx.Tensor.t()) :: t()
Create a TEME state from Nx tensors.
Create a new TEME state from position and velocity tuples.
Parameters
- epoch: UTC DateTime
- position: {x, y, z} in kilometers
- velocity: {vx, vy, vz} in km/s
@spec to_tensors(t()) :: {Nx.Tensor.t(), Nx.Tensor.t()}
Convert position and velocity to Nx tensors for numerical operations. Returns {position_tensor, velocity_tensor} as 1D tensors of shape {3}.