natural_neighbor

Luo_Suppe2026-08-15

gma.smc.interp.natural_neighbor

function natural_neighbor(points, values, resolution = None, crs = None, **kwargs):

Use Natural Neighbor method to interpolate points into a 2D array.

Parameters:

points: list||tuple||array.

Interpolate point X (longitude), Y (latitude) coordinates. There must be at least 4 coordinate points.

For example: points = [(122.52, 52.97), (124.72, 52.35), (124.4, 51.67), (126.63, 51.73)]

values: array.

The data value corresponding to the coordinate point, which is the same as the number of points.

Optional:

resolution = float. Default None.

The resolution of the interpolation result. The default (None) is 1/10 of the minimum bounds X and Y difference.

crs = str||int||aclassofgmaSpatialReference. Default None.

Coordinate system. Can be EPSG, WKT, Proj4, and other types of coordinate characters or SpatialReference class.

Returns:

Type: namedtuple.

Contains data (data) and affine transformation (geo_transform).

References.

[1] Sibson, R. (1981). A brief description of natural neighbor interpolation (Chapter 2)..

In V. Barnett (ed.). Interpolating Multivariate Data. Chichester: JohnWiley.pp.21-36.

[2] V.V. Belikov; V.D. Ivanov; V.K. Kontorovich; S.A. Korytnik; A.Y. Semenov (1997)..

The non-Sibsonian interpolation: Anewmethodofinterpolationofthevaluesofa.

function on an arbitrary set of points. Computational mathematics and mathematical physics. 37 (1): 9-15.

[3] N.H. Christ; R. Friedberg, R.; T.D. Lee (1982). weights of links and plaquettes.

in a random lattice. Nuclear Physics B. 210 (3): 337-346.


Last Updated 8/15/2026, 8:42:21 AM