pyPDAF.PDAFomi.get_interp_coeff_lin1d

pyPDAF.PDAFomi.get_interp_coeff_lin1d()

The coefficient for linear interpolation in 1D.

The resulting coefficient is used in pyPDAF.PDAFomi.obs_op_interp_lin().

Parameters:
  • gpc (ndarray[tuple[2, ...], np.float64]) – Coordinates of grid points surrounding the observations (dim=2)

  • oc (float) – Coordinates of observation (targeted location)

  • icoeff (ndarray[tuple[2, ...], np.float64]) – Interpolation coefficients (dim=2)

Returns:

icoeff – Interpolation coefficients (dim=2)

Return type:

ndarray[tuple[2, …], np.float64]