natural_neighbor_to_points#

metpy.interpolate.natural_neighbor_to_points(points, values, xi)#

Generate a natural neighbor interpolation to the given points.

This assigns values to the given interpolation points using the Liang and Hale [Liang2010]. approach.

Parameters
  • points (array_like, shape (n, 2)) – Coordinates of the data points.

  • values (array_like, shape (n,)) – Values of the data points.

  • xi (array_like, shape (M, 2)) – Points to interpolate the data onto.

Returns

img ((M,) ndarray) – Array representing the interpolated values for each input point in xi