xlandsat.interpolate_missing

xlandsat.interpolate_missing#

xlandsat.interpolate_missing(scene, pixel_radius=20, method='cubic')[source]#

Fill missing values (NaNs) in a scene by interpolation

Each missing value is filled by interpolating the pixels within a neighboring region (controlled by pixel_radius) using a piecewise cubic 2D interpolator. Interpolation is done for each band in a scene separately.

Note that this is mostly good if there are a few missing values, not large regions of the scene.

Parameters:
Returns:

filled_scene (xarray.Dataset) – The scene with missing values filled in.