|
YAC 3.21.0
Yet Another Coupler
|
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 identified source points.
Grid connection information is not taken into account by this interpolation method.
Remark: Here distances between two points on the surface of a unit sphere are defined as the angle between two vectors that point from the center of the sphere to the two points. In the configuration file, these distances are interpreted as degrees by default. An explicit unit suffix (deg, d, rad, r, case-insensitive) may be appended to override the default unit.
weighted: arithmetic_average) arithmetic_average
Simple average
| n = 1 | n = 4 | n = 9 |
|---|---|---|
distance_weighted
Inverse distance weighting
| n = 1 | n = 4 | n = 9 |
|---|---|---|
gauss_weighted
Gaussian filter
This method has an additional optional scaling parameter.
Through empirical tests a good default value has be determined. (default: gauss_scale: YAC_INTERP_NNN_GAUSS_SCALE_DEFAULT)
| n = 1 | n = 4 | n = 9 |
|---|---|---|
zero
Zero weight
Sets the weight to zero (number of source points per target has to be 1).
This method can be useful if a weight file generated by YAC is supposed to be used by another software that does not support the Fixed value interpolation. In this case this option can be used to set target points to "0.0".
Maximum search distance (default: max_search_distance: 0.0)
Valid range: 0.0 <= max_search_distance < 180.0
A distance of 0.0 results in an unlimited search distance.
If there are less than n_min source points within the maximum search distance, then the respective target point will not be interpolated by this method.
Minimum number of source points per target point (default: n_min: 0)
Valid range: 0 <= n_min <= n
A value of 0 is interpreted as n_min: n.
This option is only relevant in combination with a limited max_search_distance. It allows the interpolation of target points for which less than n source points were found within the maximum search distance. As long as at least n_min source points were found, the target point is interpolated using all source points that were found (the size of the resulting stencil may therefore differ between target points).
Example that interpolates a target point as soon as at least two of the four nearest source points are within the maximum search distance: