ess.reduce.time_of_flight.interpolator_scipy.Interpolator#
- class ess.reduce.time_of_flight.interpolator_scipy.Interpolator(time_edges, distance_edges, values, method='linear', bounds_error=False, fill_value=nan, **kwargs)[source]#
- __init__(time_edges, distance_edges, values, method='linear', bounds_error=False, fill_value=nan, **kwargs)[source]#
Interpolator for 2D regular grid data (SciPy implementation).
- Parameters:
time_edges (
ndarray
) – 1D array of time edges (length N_time).distance_edges (
ndarray
) – 1D array of distance edges (length N_dist).values (
ndarray
) – 2D array of values on the grid. The shape must be (N_dist, N_time).method (
str
, default:'linear'
) – Method of interpolation. Default is “linear”.bounds_error (
bool
, default:False
) – If True, when interpolated values are requested outside of the domain, a ValueError is raised. If False, fill_value is used.fill_value (
float
, default:nan
) – Value to use for points outside of the grid.kwargs – Additional arguments to pass to scipy.interpolate.RegularGridInterpolator.
Methods
__init__
(time_edges, distance_edges, values)Interpolator for 2D regular grid data (SciPy implementation).