pyorc.Velocimetry.mask.variance#
- Velocimetry.mask.variance(tolerance=5, mode='and')#
Masks locations if their variance (std/mean in time) is above a tolerance level for either or both x and y direction.
- Parameters:
tolerance (float) – amount of standard deviations allowed from the mean
mode (str) – can be “and” (default) or “or”. If “or” (“and”), then only one (both) of two vector components need(s) to be within tolerance.
- 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