Samples¶
Orbit sample containers and loaders.
Orbit data is stored in tabulated form and consumed by interpolators. This module
provides the neutral OrbitSamples container that any loader can produce
and that any interpolator can consume, so that any loader can be paired with any
interpolator.
from l2orbits.samples import OrbitSamples
samples = OrbitSamples.from_l1("orbit.h5")
samples = OrbitSamples.from_lisaorbits("orbit.h5")
- class OrbitSamples(*, times: NDArray[floating], positions: NDArray[floating], ltt_times: NDArray[floating], ltts: NDArray[floating])¶
Tabulated orbital samples.
All loaded orbits data are canonicalized to this format before being passed to interpolators.
- Parameters:
times (
numpy._typing._array_like.NDArray[numpy.floating]) – Sample times [s], shape(N,).positions (
numpy._typing._array_like.NDArray[numpy.floating]) – Spacecraft positions [m], shape(N, 3, 3)(time, SC, coord).ltt_times (
numpy._typing._array_like.NDArray[numpy.floating]) – Sample times for light travel times [s]. May differ fromtimes, shape(M,).ltts (
numpy._typing._array_like.NDArray[numpy.floating]) – Light travel times [s], shape(M, 6)(time, link).
- classmethod from_l1(path: PathLike[str] | str, *, tmin: float | None = None, tmax: float | None = None) OrbitSamples¶
Load tabulated orbit samples from a Mojito L1 file.
- Parameters:
path – Path to the Mojito L1 HDF5 file.
tmin – Minimum time for interpolation. Only data with time-stamping larger than
tminwill be used to create the interpolant. If None, no lower bound is applied. Default is None.tmax – Maximum time for interpolation. Only data with time-stamping smaller than
tmaxwill be used to create the interpolant. If None, no upper bound is applied. Default is None.
- classmethod from_lisaorbits(path: PathLike[str] | str) OrbitSamples¶
Load tabulated orbit samples from a lisaorbits HDF5 file.
This mirrors the reference reader for lisaorbits orbit files, without the need to depend on lisaorbits itself.
- Parameters:
path – Path to the lisaorbits HDF5 file containing orbit data.