sup3r.utilities.utilities.nn_fill_array

Contents

sup3r.utilities.utilities.nn_fill_array#

nn_fill_array(array)[source]#

Fill any NaN values in an np.ndarray from the nearest non-nan values.

Parameters:

array (Union[np.ndarray, da.core.Array]) – Input array with NaN values

Returns:

array (Union[np.ndarray, da.core.Array]) – Output array with NaN values filled