shepard_interp_2d


shepard_interp_2d, a Python code which defines and evaluates Shepard interpolants to scattered 2D data, based on inverse distance weighting.

The test also needs the test_interp_2d() library.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

shepard_interp_2d is available in a C version and a C++ version and a Fortran77 version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

padua, a Python code which returns the points and weights for Padua sets, useful for interpolation in 2d.

pwl_interp_2d, a Python code which evaluates a piecewise linear interpolant to data defined on a regular 2d grid.

rbf_interp_2d, a Python code which defines and evaluates radial basis function (RBF) interpolants to 2d data.

shepard_interp_1d, a Python code which defines and evaluates Shepard interpolants to 1d data, based on inverse distance weighting.

test_interp_2d, a Python code which defines test problems for interpolation of data z(x,y)), depending on a 2d argument.

Reference:

  1. Richard Franke,
    Scattered Data Interpolation: Tests of Some Methods,
    Mathematics of Computation,
    Volume 38, Number 157, January 1982, pages 181-200.
  2. Donald Shepard,
    A two-dimensional interpolation function for irregularly spaced data,
    ACM '68: Proceedings of the 1968 23rd ACM National Conference,
    ACM, pages 517-524, 1969.

Source Code:

The code generates some plots of the data and approximants.


Last modified on 23 March 2026.