pyorc.Velocimetry.mask.window_replace#
- Velocimetry.mask.window_replace(wdw=1, iter=1, **kwargs)#
Replaces values in a certain window size with mean of their neighbours. Returns a Dataset instead of a mask. NOTE: This functionality may be moved to a different subclass in later releases.
- Parameters:
wdw (int, optional) – window used to determine relevant neighbours
- Returns:
mask – mask applicable to input dataset with
ds.velocimetry.filter(mask)
. Ifinplace=True
, the dataset will be returned masked withmask
.- Return type:
xr.DataArray