YetAnotherCoupler  2.4.2
Average interpolation

Table of Contents

Description

This method supports source fields that are defined on grid vertices or cells. In case it is defined on cells, the user has to provide coordinates for the cells, for example cell centers.

For each target point, this method searches for a matching source cell. If the source field is defined on the cells, YAC will generate a grid based on the provided coordinates and will use this instead of the original source grid.

The method will then apply the selected weighting method to compute the interpolation stencil for all target points using the non-masked corners of the matching source cells.

Source field

Options

  • Weighting type (default: weighted="ARITHMETIC_AVERAGE")
    • ARITHMETIC_AVERAGE

      Simple average

      Target field
    • DISTANCE_WEIGHTED

      Inverse distance weighting

      Target field
    • BARYCENTRIC_COORDINATE

      YAC will first triangulate the source cell and then find the matching source triangle for the target point. The weights are then computed based on the barycentric coordinates of the target point within this triangle.

      Target field
  • Partial coverage (default: partial_coverage="false")

    Target points that match with source cells that have at least one masked corner will not be interpolated by this interpolation method, if partial_coverage is set to false.

XML example

<interpolation method="average"
weighted="BARYCENTRIC_COORDINATE"
partial_coverage="true"/>