Interpolation
- pyspedas.tinterpol(names, interp_to, method=None, newname=None, suffix=None)
Interpolate data to times in interp_to.
- Parameters
names (
str/list
ofstr
) – List of variables to interpolate.interp_to (
str
) –- String containing the variable
containing the time stamps to interpolate to
method (
str
, optional) – Interpolation method. Default is ‘linear’. Specifies the kind of interpolation as a string (‘linear’, ‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic’, ‘previous’, ‘next’) where ‘zero’, ‘slinear’, ‘quadratic’ and ‘cubic’ refer to a spline interpolation of zeroth, first, second or third order; ‘previous’ and ‘next’ simply return the previous or next value of the point) or as an integer specifying the order of the spline interpolator to use.newname (
str/list
ofstr
, optional) – List of new_names for pytplot variables. If ‘’, then pytplot variables are replaced. If not given, then a suffix is applied.suffix (
str
, optional) – A suffix to apply. Default is ‘-itrp’.
- Return type
None.