interpu

interpu(): 1D linear interpolation using astropy quantities.

This is a wrapper for numpy.interp for use when using astropy quantities. If x and xp have different units, xp is converted to the units of x before interpolation. An exception is raised if the units are not compatible (i.e., the units of xp cannot be converted to the units of x).

Author

Matthew Burger

mathMB.interpu.interpu(x, xp, fp, **kwargs)[source]

Return one dimensional interpolated astropy quantities.

Parameters

x

The x-coordinates at which to evaluate the interpolated values

xp

The x-coordinates of the data points.

fp

The y-coordinates of the data points

Notes

x and xp must have compatible units. See numpy.interp for details on interpolation.