make_linear_interpolator_separated

hcipy.interpolation.make_linear_interpolator_separated(field, grid=None, fill_value=nan)

Make a linear interpolators for a separated grid.

Parameters
fieldField or ndarray

The field to interpolate.

gridGrid or None

The grid of the field. If it is given, the grid of field is replaced by this grid.

fill_valuescalar

The value to use for points outside of the domain of the input field. If this is None, the values outside the domain are extrapolated.

Returns
Field generator

The interpolator, as a Field generator. The grid on which this field generator will evaluated, does not have to be separated.