pyorc.Velocimetry.mask.window_replace#

Velocimetry.mask.window_replace(wdw=1, iter=1, **kwargs)#

Replace 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.

wdwint, optional

window used to determine relevant neighbours

iterint, optional

amount of times to repeat window operator

kwargsdict

keyword arguments to pass to helpers.stack_window

Returns:

mask – mask applicable to input dataset with ds.velocimetry.filter(mask). If inplace=True, the dataset will be returned masked with mask.

Return type:

xr.DataArray