pysteps.utils.tapering.compute_mask_window_function
pysteps.utils.tapering.compute_mask_window_function¶
- pysteps.utils.tapering.compute_mask_window_function(mask, func, **kwargs)¶
Compute window function for a two-dimensional area defined by a non-rectangular mask. The window function is computed based on the distance to the nearest boundary point of the mask. Window function-specific parameters are given as keyword arguments.
- Parameters
- mask: array_like
Two-dimensional boolean array containing the mask. Pixels with True/False are inside/outside the mask.
- func: str
The name of the window function. The currently implemented function is ‘tukey’.
- Returns
- out: array
Array containing the tapering weights.