natural_neighbor_to_points#

metpy.interpolate.natural_neighbor_to_points(points, values, xi)[source]#

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, (N, 2)) – Coordinates of the data points.

  • values (array-like, (N,)) – Values of the data points.

  • xi (array-like, (M, 2)) – Points to interpolate the data onto.

Returns:

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