pyPDAF.PDAF.omi_get_interp_coeff_tri

pyPDAF.PDAF.omi_get_interp_coeff_tri()

The coefficient for linear interpolation in 2D on unstructure triangular grid.

The resulting coefficient is used in omi_obs_op_interp_lin().

This function is for triangular model grid interpolation coefficients determined as barycentric coordinates.

Parameters:
  • gpc (ndarray[tuple[3, 2], np.float64]) – Coordinates of grid points with dimension of (3, 2). 3 grid points surrounding the observation; each containing lon and lat coordinates. The order of the grid points in gcoords has to be consistent with the order of the indices specified in id_obs_p of obs_f.

  • oc (ndarray[tuple[2], np.float64]) – Coordinates of observation (targeted location); dim(2)

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

Returns:

icoeff – Interpolation coefficients; dim(3)

Return type:

ndarray[tuple[3], np.float64]