xscale.Window.convolve¶
-
Window.convolve(mode='reflect', weights=1.0, trim=False, compute=False)¶ Convolve the current window with the data
Parameters: - mode : {‘reflect’, ‘periodic’, ‘any-constant’}, optional
The mode parameter determines how the array borders are handled. Default is ‘reflect’.
- weights : DataArray, optional
Array to weight the result of the convolution close to the boundaries.
- trim : bool, optional
If True, choose to only keep the valid data not affected by the boundaries.
- compute : bool, optional
If True, the computation is performed after the dask graph has been made. If False, only the dask graph is made is the computation will be performed later on.
Returns: - res : xarray.DataArray
Return a filtered DataArray