PDAFomi_get_interp_coeff_tri Subroutine

public subroutine PDAFomi_get_interp_coeff_tri(gpc, oc, icoeff)

Helper routine: Initialize interpolation coefficients in triangle

The routine computes the coefficients for triangular interpolation as barycentric coordinates. The computation is done for one observation given the observation coordinates (OC) as well as the coordinates of the grid points (GPC). In GPC each row contains the coordinates for one grid point. Thus the first index determines the grid point, while the second the coordinates of this grid point

Revision history: * 2019-12 - Lars Nerger - Initial code * Later revisions - see repository log

Arguments

Type IntentOptional Attributes Name
real, intent(in) :: gpc(:,:)
real, intent(in) :: oc(:)
real, intent(inout) :: icoeff(:)