Skip to main content

Module two_d

Module two_d 

Source
Expand description

Two-dimensional interpolation.

See the book entry Interpolation on grids.

Gridded interpolators take axes x (length nx), y (length ny) and a value matrix z of shape (nx, ny) with z[[i, j]] = f(x[i], y[j]).

Modules§

all_phase
All-phase interpolation on a uniform grid.
bicubic
Bicubic (C¹) interpolation on a rectilinear grid.
bilinear
Bilinear interpolation on a rectilinear grid.
cubic_basis
Cardinal cubic basis interpolation on a rectilinear grid.
fourier_2d
Trigonometric interpolation of doubly periodic gridded data.
lanczos
Lanczos resampling on a uniform grid.
nearest
Nearest-neighbour interpolation on a rectilinear grid.
radial_basis_functions
Radial basis function interpolation of scattered 2D data.
rect_bivariate_spline
Tensor-product interpolating splines on a rectangular grid (SciPy’s RectBivariateSpline with s = 0): s(x, y) = Σᵢ Σⱼ cᵢⱼ Bᵢ,ₖₓ(x) Bⱼ,ₖᵧ(y), with values, partial derivatives and integrals over rectangles.
scattered
Interpolation of scattered 2-D data on a Delaunay triangulation, following scipy.interpolate: piecewise linear (LinearNDInterpolator), the C¹ Clough-Tocher scheme with globally estimated gradients (CloughTocher2DInterpolator), nearest neighbour (NearestNDInterpolator, any dimension) and the griddata front end.
smooth_bivariate
Smoothing spline surfaces for scattered data (SciPy’s bisplrep / bisplev and SmoothBivariateSpline, LSQBivariateSpline).

Traits§

Interpolation2D
Evaluation interface shared by the 2D interpolators.