xrspatial.interpolate.spline#

xrspatial.interpolate.spline(x, y, z, template, smoothing=0.0, name='spline')[source]#

Thin Plate Spline interpolation.

Parameters:
  • x (array-like) – Coordinates and values of scattered input points.

  • y (array-like) – Coordinates and values of scattered input points.

  • z (array-like) – Coordinates and values of scattered input points.

  • template (xr.DataArray) – 2-D DataArray whose grid defines the output raster.

  • smoothing (float, default 0.0) – Smoothing parameter. 0 forces exact interpolation through the data points.

  • name (str, default 'spline') – Name of the output DataArray.

Return type:

xr.DataArray

Raises:

MemoryError – If the worst-case allocation (kernel block K or augmented system A) would exceed 80% of available memory.