interpolate_nans_1d#
- metpy.interpolate.interpolate_nans_1d(x, y, kind='linear')#
Interpolate NaN values in y.
Interpolate NaN values in the y dimension. Works with unsorted x values.
- Parameters:
x (array-like) – 1-dimensional array of numeric x-values
y (array-like) – 1-dimensional array of numeric y-values
kind (str) – specifies the kind of interpolation x coordinate - ‘linear’ or ‘log’, optional. Defaults to ‘linear’.
- Returns:
An array of the y coordinate data with NaN values interpolated.