orbitx.utils._orbit.interp_circ.interp_circ

Contents

orbitx.utils._orbit.interp_circ.interp_circ#

orbitx.utils._orbit.interp_circ.interp_circ(x: ndarray, y: ndarray, period: float = 360.0) Callable[[ndarray[tuple[Any, ...], dtype[_ScalarT]]], ndarray[tuple[Any, ...], dtype[_ScalarT]]][source]#

interp_circ interpolation for periodic-valued data

Creates a function to interpolate data valued on a circle (for period = 360, a datapoint with value 359 is at distance 2 of a datapoint with value 1)

Parameters:
  • x (np.ndarray) – The values of the time-axis variable for the data to interpolate (not periodic)

  • y (np.ndarray) – The values to interpolate (periodic)

Returns:

A function which takes time axis values as input and returns the interpolated values

Return type:

Callable[[npt.NDArray], npt.NDArray]