Skip to content

State Vectors, STM & Covariance

This page covers the state representation used by satkit's numerical propagator, the state transition matrix, and how to propagate covariance and impulsive maneuvers.

State Vector

The propagator integrates a 6-dimensional state \(\vec{s} = (\vec{p}, \vec{v})\) — position and velocity in the GCRF (inertial) frame, in SI units. The free function satkit.propagate() operates directly on these 6-vectors.

State Transition Matrix

The state transition matrix \(\Phi\) describes the partial derivative of propagated state with respect to initial state:

\[ \Phi(t; t_0)~=~\frac{\partial(\vec{p}(t),\vec{v}(t))}{\partial(\vec{p}_0,\vec{v}_0)} \]

This 6×6 matrix is computed by augmenting the ODE integration with the variational equations — the partial derivatives of each force term (Montenbruck & Gill 2000, §7.1–7.2, Eq. 7.42). It is the central object for:

  • Covariance propagation — \(P(t) = \Phi\,P(t_0)\,\Phi^T\) (Montenbruck & Gill 2000, §8.1; Tapley, Schutz & Born 2004, §4.2)
  • State estimation — linearization for least-squares fits and Kalman filters
  • Sensitivity analysis — "how does the orbit at time \(t\) change if I nudge the initial state?"

Pass output_phi=True to satkit.propagate() to compute it. (rodas4 and gauss_jackson8 integrators do not support STM propagation — use any of the adaptive Runge-Kutta integrators: rkv98, rkv87, rkv65 or rkts54.)

The satstate Class

For most workflows the higher-level satstate class is more ergonomic than the free function: it bundles state with time, optional covariance, optional maneuvers, and a propagate() method that handles everything automatically. Compare:

Feature propagate() satstate.propagate()
Position + velocity Yes Yes
Covariance propagation Manual (output_phi + matrix math) Automatic via STM
Impulsive maneuvers Not supported Automatic segmentation
Continuous thrust Via satproperties Via satproperties

Basic Usage

import satkit as sk
import numpy as np

r = sk.consts.earth_radius + 500e3
v = np.sqrt(sk.consts.mu_earth / r)
sat = sk.satstate(sk.time(2024, 1, 1), np.array([r, 0, 0]), np.array([0, v, 0]))

# Propagate forward 6 hours
new_state = sat.propagate(sat.time + sk.duration.from_hours(6))
print(new_state.pos)  # position at t + 6h

satstate.propagate takes a target time or a duration from the state's own time; a duration is a satkit.duration, a datetime.timedelta or a number of seconds, as for satkit.propagate(duration=...). A propresult from the free function becomes a satstate with to_satstate():

import datetime

later = new_state.propagate(datetime.timedelta(minutes=30))  # or 1800.0 seconds

res = sk.propagate(np.array([r, 0, 0, 0, v, 0]), sk.time(2024, 1, 1), duration_secs=600.0)
sat2 = res.to_satstate()  # state at res.time_end, no covariance or maneuvers

Covariance Propagation

Attach position and/or velocity uncertainty and it will be propagated automatically via the STM. The set_pos_uncertainty and set_vel_uncertainty methods accept 1-sigma components along any supported satellite-local or inertial frame:

# 1-sigma position uncertainty in RTN: [radial, transverse, normal]
# (frame is required — no default). RTN is the CCSDS OEM / CDM covariance
# convention; RSW and RIC are Python-level aliases for the same frame.
sat.set_pos_uncertainty(np.array([10.0, 200.0, 30.0]), frame=sk.frame.RTN)

# Or in NTW, whose T axis is exactly along the velocity
sat.set_pos_uncertainty(np.array([10.0, 200.0, 30.0]), frame=sk.frame.NTW)

# Or directly in GCRF
sat.set_pos_uncertainty(np.array([150.0, 150.0, 150.0]), frame=sk.frame.GCRF)

# Set velocity uncertainty the same way — the position block is preserved
sat.set_vel_uncertainty(np.array([0.01, 0.2, 0.05]), frame=sk.frame.RTN)

# Or set the full 6x6 covariance matrix directly (in GCRF)
sat.cov = np.diag([150.0**2] * 3 + [0.1**2] * 3)

# Propagate -- covariance propagates automatically
new_state = sat.propagate(sat.time + sk.duration.from_hours(6))
print(new_state.cov)  # 6x6 covariance at the new time

The sigmas define a covariance that is diagonal in the chosen frame, so pick the frame the sigmas were actually specified in. RTN's \(\hat{R}\) is exactly along the position and NTW's \(\hat{T}\) is exactly along the velocity; the two differ by the flight-path angle, so on eccentric orbits a covariance diagonal in one is not diagonal in the other. The Covariance Propagation tutorial compares them on an eccentric orbit.

Uncertainties and maneuvers accept GCRF, RTN (= RSW = RIC), NTW and LVLH; the Maneuver Coordinate Frames guide compares them and says which to use.

Impulsive Maneuvers

Add delta-v events at scheduled times. The propagator automatically segments at each maneuver time and applies the burn:

t_burn = sat.time + sk.duration.from_hours(1)

# Option 1: ergonomic constructors (recommended for the common cases).
# These pick the right coordinate frame for you.
sat.add_prograde(t_burn, 10.0)     # +10 m/s along velocity (NTW +T)
sat.add_retrograde(t_burn, 5.0)    # -5 m/s along velocity
sat.add_radial(t_burn, 2.0)        # +2 m/s radial-out (NTW +N)
sat.add_normal(t_burn, 1.0)        # +1 m/s cross-track (NTW +W)

# Option 2: explicit delta-v vector in a chosen frame.
sat.add_maneuver(t_burn, [0, 10, 0], frame=sk.frame.NTW)  # tangent = along velocity
sat.add_maneuver(t_burn, [0, 10, 0], frame=sk.frame.RTN)  # tangential ≠ velocity on eccentric orbits
sat.add_maneuver(t_burn, [0, 0, 5], frame=sk.frame.GCRF)  # 5 m/s in inertial +Z

# Propagate past the burn -- delta-v is applied at t_burn
new_state = sat.propagate(sat.time + sk.duration.from_hours(3))

Multiple maneuvers can be added and will be applied in chronological order. Backward propagation reverses the maneuvers automatically.

See Also