YetAnotherCoupler 3.2.0_a
Loading...
Searching...
No Matches
Nearest Corner Cells interpolation

Table of Contents

Description

This method only supports source fields that are defined on grid cells.

For each target point, this method first searches for a matching source cell. Afterwards it determines the corner of this cell, which is the closest to the target point. And finally all unmasked source cells connected to this corner are selected.

The method will then apply the selected weighting method to compute the interpolation stencil for all target points using the selected cells.

This method produces results that are very similar to Average interpolation for cell-based source fields. The major differences occure close to grid or mask edges, where the Average interpolation would fail. This property makes the Nearest Corner Cells interpolation method a good fallback option for point-based interpolation methods (e.g. Average interpolation or Hybrid cubic spherical Bernstein-Bézier patch interpolation).

Options

  • Weighting type (default: weighted: arithmetic_average)
    • arithmetic_average

      Simple average

    • distance_weighted

      Inverse distance weighting

  • Partial coverage (default: partial_coverage: false)

    Target points for which at least one of the selected source cells is masked, will not be interpolated by this interpolation method, if partial_coverage is set to false.

YAML example

interpolation:
- ncc:
weighted: distance_weighted
partial_coverage: true