make_nearest_interpolator_separated

hcipy.interpolation.make_nearest_interpolator_separated(field, grid=None)

Make a nearest interpolator for a field on 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.

Returns
Field generator

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