make_nearest_interpolator_unstructured

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

Make a nearest interpolator for an unstructured grid.

Parameters
fieldField or array_like

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 be evaluated does not need to have any structure.