pyorc.Velocimetry.mask.rolling#
- Velocimetry.mask.rolling(wdw=5, tolerance=0.5)#
Mask values for strongly deviating values from neighbours over rolling length.
Deviation is measured by
tolerance
.- wdwint, optional
amount of time steps in rolling window (centred) (default: 5)
- tolerancefloat, optional
tolerance as relative deviation from mean of values, including value itself (default: 0.5)
- 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