h5analysis.interpolate.interp2d

h5analysis.interpolate.interp2d(x, y, z, new_x, new_y, **kwargs)

Replaces the legacy scipy.interpolate.interp2d function (see here: https://gist.github.com/ev-br/8544371b40f414b7eaf3fe6217209bff) with RegularGridInterpolator.

Parameters:
  • x (1d array) – x data

  • y (1d array) – y data

  • z (2d array) – z data

  • new_x (1d array) – x data for interpolation

  • new_y (1d array) – y data for interpolation

  • ** kwargs – as per scipy.interpolate.RegularGridInterpolator