YetAnotherCoupler  2.4.2
N-Nearest-Neighbour interpolation

Table of Contents

Description

This method supports source fields that are defined on points at the grid corners, cells, or edges.

For each target point, this method searches for the "n" nearest source points. Using the weighting method selected by the user, the interpolation stencil will be generated from the found source points.

Grid connection information is not taken into account by this interpolation method.

Source field

Options

  • Number of source points per target point (mandatory)
  • Weighting method (default: weighted="ARITHMETIC_AVERAGE")
    • ARITHMETIC_AVERAGE

      Simple average

      Target field
      n = 1n = 4n = 9


    • DISTANCE_WEIGHTED

      Inverse distance weighting

      Target field
      n = 1n = 4n = 9


    • GAUSS_WEIGHTED

      Gaussian filter

      This method has a additional optional scaling parameter.
      Through empirical tests a good default value has be determined. (default: gauss_scale=YAC_DEFAULT_GAUSS_SCALE)

      Target field
      n = 1n = 4n = 9

XML example

<interpolation method="n-nearest_neighbor"
n="4"
weighted="ARITHMETIC_AVERAGE" />