Interpolation

For a comparison and overview of some of the various interpolation routines listed below, please see the Ngmath Library Overview. This document discusses the various packages and their differences. For regridding routines, see the full list in the regridding category list.
area_hi2lores Interpolates from high resolution grids to low resolution grids using local area averaging.
area_hi2lores_Wrap Interpolates from high resolution grids to low resolution grids using local area averaging. (retains meta data)
bin_avg Calculates gridded binned averages and counts using randomly spaced data.
csa1 Calculates an approximating cubic spline for the input data, one 1-dimensional section at a time.
csa1d Calculates an approximating cubic spline for the input data, one 1-dimensional section at a time.
csa1s Calculates an approximating cubic spline for the input data, one 1-dimensional section at a time.
csa1x Calculates an approximating cubic spline for the input data, one 1-dimensional section at a time.
csa1xd Calculates an approximating cubic spline for the input data, one 1-dimensional section at a time.
csa1xs Calculates an approximating cubic spline for the input data, one 1-dimensional section at a time.
csa2 Calculates an approximating cubic spline for two-dimensional input data.
csa2d Calculates an approximating cubic spline for two-dimensional input data.
csa2l Calculates an approximating cubic spline for two-dimensional input data.
csa2ld Calculates an approximating cubic spline for two-dimensional input data.
csa2ls Calculates an approximating cubic spline for two-dimensional input data.
csa2lx Calculates an approximating cubic spline for two-dimensional input data.
csa2lxd Calculates an approximating cubic spline for two-dimensional input data.
csa2lxs Calculates an approximating cubic spline for two-dimensional input data.
csa2s Calculates an approximating cubic spline for two-dimensional input data.
csa2x Calculates an approximating cubic spline for two-dimensional input data.
csa2xd Calculates an approximating cubic spline for two-dimensional input data.
csa2xs Calculates an approximating cubic spline for two-dimensional input data.
csa3 Calculates an approximating cubic spline for three-dimensional input data.
csa3d Calculates an approximating cubic spline for three-dimensional input data.
csa3l Calculates an approximating cubic spline for three-dimensional input data.
csa3ld Calculates an approximating cubic spline for three-dimensional input data.
csa3ls Calculates an approximating cubic spline for three-dimensional input data.
csa3lx Calculates an approximating cubic spline for three-dimensional input data.
csa3lxd Calculates an approximating cubic spline for three-dimensional input data.
csa3lxs Calculates an approximating cubic spline for three-dimensional input data.
csa3s Calculates an approximating cubic spline for three-dimensional input data.
csa3x Calculates an approximating cubic spline for three-dimensional input data.
csa3xd Calculates an approximating cubic spline for three-dimensional input data.
csa3xs Calculates an approximating cubic spline for three-dimensional input data.
csc2s Converts Cartesian coordinates on a unit sphere to spherical coordinates (lat/lon).
csgetp Retrieves control parameters for Cssgrid routines.
css2c Converts spherical coordinates (lat/lon) to Cartesian coordinates on a unit sphere.
cssetp Sets control parameters for Cssgrid routines.
cssgrid Uses tension splines to interpolate randomly spaced data on a unit sphere to data values on a uniform grid.
cssgrid_Wrap Uses tension splines to interpolate randomly spaced data on a unit sphere to data values on a uniform grid (retains metadata).
csstri Calculates a Delaunay triangulation of data randomly positioned on the surface of a sphere.
csvoro Determines Voronoi polygons for data randomly positioned on a sphere and returns vertices for the one surrounding a specified input point.
dsgetp Gets parameters for Dsgrid routines.
dsgrid2 Interpolates gridded 2-D data.
dsgrid2d Interpolates gridded 2-D data.
dsgrid2s Interpolates gridded 2-D data.
dsgrid3 Interpolates gridded 3-D data.
dsgrid3d Interpolates gridded 3-D data.
dsgrid3s Interpolates gridded 3-D data.
dspnt2 Interpolates 2-D data at specified points.
dspnt2d Interpolates 2-D data at specified points.
dspnt2s Interpolates 2-D data at specified points.
dspnt3 Interpolates 3-D data at specified points.
dspnt3d Interpolates 3-D data at specified points.
dspnt3s Interpolates 3-D data at specified points.
dssetp Sets parameters for Dsgrid routines.
ftcurv Calculates an interpolatory spline through a sequence of functional values.
ftcurvd Calculates the derivatives of an interpolatory spline under tension.
ftcurvi Calculates integrals of an interpolatory spline under tension between two user-specified limits.
ftcurvp Calculates an interpolatory spline under tension through a sequence of functional values for a periodic function.
ftcurvpi Calculates an integral of an interpolatory spline between two specified points.
ftcurvps Calculates a smoothing spline.
ftcurvs Calculates a smoothing spline.
ftgetp Retrieves control parameters for Fitgrid routines.
ftkurv Calculates an interpolatory spline for parametric curves.
ftkurvd Calculates an interpolatory spline for parametric curves; it also calculates first and second derivatives of the interpolatory spline.
ftkurvp Calculates an interpolatory spline under tension through a sequence of points in the plane forming a closed curve.
ftkurvpd Calculates an interpolatory spline for closed parametric curves; it also calculates first and second derivatives of the interpolatory spline.
ftsetp Sets control parameters for Fitgrid routines.
idsfft Interpolates 2D random data.
int2p Interpolates pressure levels to a different set of pressure levels.
int2p_n Interpolates pressure levels to a different set of pressure levels.
int2p_n_Wrap Interpolates pressure levels to a different set of pressure levels and returns meta data.
int2p_Wrap Interpolates pressure levels to a different set of pressure levels and returns meta data.
linint1 Interpolates from one series to another using piecewise linear interpolation.
linint1_n Interpolates from one series to another using piecewise linear interpolation, given the dimension to interpolate across.
linint1_n_Wrap Interpolates from one series to another using piecewise linear interpolation across the given dimension, and retains metadata.
linint1_Wrap Interpolates from one series to another using piecewise linear interpolation, and retains metadata.
linint2 Interpolates from one grid to another grid using bilinear interpolation.
linint2_points Interpolates from a grid to arbitrarily specified coordinate pairs using bilinear interpolation.
linmsg Linearly interpolates to fill in missing values.
linmsg_n Linearly interpolates to fill in missing values, given the dimension to do the interpolation across.
natgrid Interpolates from 2D random data to get values on a rectangular output grid.
natgrid_Wrap Interpolates from 2D random data to get values on a rectangular output grid (retains metadata).
natgridd Interpolates from 2D random data to get values on a rectangular output grid.
natgrids Interpolates from 2D random data to get values on a rectangular output grid.
nngetaspectd Retrieves an aspect at a specified coordinate position.
nngetaspects Retrieves an aspect at a specified coordinate position.
nngetp Retrieves control parameters for Natgrid routines.
nngetsloped Retrieves a slope at a specified coordinate position.
nngetslopes Retrieves a slope at a specified coordinate position.
nngetwts Retrieves natural neighbors and weights for the function values at those neighbors.
nngetwtsd Retrieves natural neighbors and weights for the function values at those neighbors.
nnpnt Interpolates from 2D random data to get values at a specified set of points.
nnpntd Interpolates from 2D random data to get values at a specified set of points.
nnpntend Terminates interpolation from 2D random data to get values at a specified set of points.
nnpntendd Terminates interpolation from 2D random data to get values at a specified set of points.
nnpntinit Initializes internal quantities, for given input data, to allow subsequent nnpnt calls to interpolate at specified points.
nnpntinitd Initializes internal quantities, for given input data, to allow subsequent nnpntd calls to interpolate at specified points.
nnpntinits Initializes internal quantities, for given input data, to allow subsequent nnpnts calls to interpolate at specified points.
nnpnts Interpolates from 2D random data to get values at a specified set of points.
nnsetp Sets control parameters for Natgrid routines.
obj_anal_ic Iterative correction objective analysis (Cressman, Barnes).
poisson_grid_fill Replaces all _FillValue values in a grid with values derived from solving Poisson's equation via relaxation.
rcm2points Interpolates curvilinear grids (RCM, WRF, NARR) to user specified locations.
rcm2rgrid Interpolates RCM, WRF and NARR grids to rectilinear lat/lon grids.
rgrid2rcm Interpolates a rectilinear lat/lon grid to curvilinear grids like those used by the RCM, WRF and NARR models/datasets.
shgetnp Finds the nearest point, or points (in a specified set of points), to a given point in 3-space.
shgetp Retrieves control parameters for Shgrid routines.
shgrid Interpolate using randomly spaced data in 3-space.
shsetp Sets control parameters for Shgrid routines.
sigma2hybrid Interpolates from sigma to hybrid coordinates.
trop_wmo Determines the level of the thermal tropopause.
wrf_interp_1d Linearly interpolates a one-dimensional variable in the vertical.
wrf_interp_2d_xy Extracts a cross section from a given input field.
wrf_interp_3d_z Interpolates to a specified pressure/height level.
wrf_user_intrp2d Interpolates ARW WRF 2D model data along a give line.
wrf_user_intrp3d Interpolates ARW WRF model data vertically or horizontally.
wrf_user_unstagger Unstaggers an input variable along a specified dimension.