ess.reduce.time_of_flight.interpolator_scipy.Interpolator#
- class ess.reduce.time_of_flight.interpolator_scipy.Interpolator(time_edges, distance_edges, pulse_edges, values, method='linear', bounds_error=False, fill_value=nan, **kwargs)[source]#
- __init__(time_edges, distance_edges, pulse_edges, values, method='linear', bounds_error=False, fill_value=nan, **kwargs)[source]#
Interpolator for 3D regular grid data (SciPy implementation).
- Parameters:
time_edges (
ndarray
) – 1D array of time edges.distance_edges (
ndarray
) – 1D array of distance edges.pulse_edges (
ndarray
) – 1D array of pulse edges.values (
ndarray
) – 3D array of values on the grid. The shape must be (nz, ny, nx).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, ...[, ...])Interpolator for 3D regular grid data (SciPy implementation).