wradlib.ipol.cart_to_irregular_interp(cartgrid, values, newgrid, **kwargs)

Interpolate array values defined by cartesian coordinate array cartgrid to new coordinates defined by newgrid using nearest neighbour, linear or cubic interpolation

Slow for large arrays

Keyword arguments are fed to scipy.interpolate.griddata

  • cartgrid (numpy ndarray) – 3 dimensional array (nx, ny, lon/lat) of floats;
  • values (numpy 2d-array) – 2 dimensional array (nx, ny) of data values
  • newgrid (numpy ndarray) – Nx2 dimensional array (…, lon/lat) of floats
  • kwargs (scipy.interpolate.griddata) –

interp (numpy ndarray) – array with interpolated values of size N