InterpOrbits

class InterpOrbits(samples: OrbitSamples, *, interp_maker: InterpMaker)

Orbits object composed from tabulated samples and an interpolator maker.

This is the recommended class to create a ready-to-use orbits object for L2 code.

Note

The time of reception t to provide to the __call__() method, as well as the time of emission computed internally, must be within the range of the tablulated samples. Otherwise, depending on the interpolator maker, an error may be raised or the result may be unreliable. Especially, since the time of emission is several seconds earlier than the time of reception, the time of reception must be at least several seconds later than the minimum time of the samples.

classmethod from_l1(path: PathLike[str] | str, *, tmin: float | None = None, tmax: float | None = None, order: int = 5, interp_maker: None = None) → InterpOrbits[ndarray]
classmethod from_l1(path: PathLike[str] | str, *, tmin: float | None = None, tmax: float | None = None, order: int = 5, interp_maker: InterpMaker[U]) → InterpOrbits[U]

Create an interpolated orbit source from an L1 file.

Parameters:
  • path – Path to the L1 HDF5 file.

  • tmin – Minimum time for interpolation. Only data with time-stamping larger than tmin will 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 tmax will be used to create the interpolant. If None, no upper bound is applied. Default is None.

  • order – Order of the spline interpolant. Default is 5.

  • interp_maker – Optional custom interpolator maker. If None, a DockInterpMaker with the specified order is used. Default is None.

classmethod from_lisaorbits(path: PathLike[str] | str, *, order: int = 5, interp_maker: None = None) → InterpOrbits[ndarray]
classmethod from_lisaorbits(path: PathLike[str] | str, *, order: int = 5, interp_maker: InterpMaker[U]) → InterpOrbits[U]

Create an interpolated orbit source from a lisaorbits file.

Parameters:
  • path – Path to the lisaorbits HDF5 file.

  • order – Order of the spline interpolant. Default is 5.

  • interp_maker – Optional custom interpolator maker. If None, a DockInterpMaker with the specified order is used. Default is None.

Note

This differs from OrbitsWrappingLISAOrbits in that:

  • it does not require the lisaorbits package to be installed,

  • it loads both positions and light travel times from the file and interpolates them, instead of calling the lisaorbits API to compute LTTs from positions.

__call__(t: T) → ResponseOrbitalQuantities

Interpolate orbital quantities necessary to build LISA response function.

The quantities include the time of emission (given the time of reception t), the receiver SC position at time of reception, the emitter SC position at time of emission, and the unit link vectors.