xscale.Window.boundary_weights¶
-
Window.boundary_weights(mode='reflect', mask=None, drop_dims=[], compute=False)¶ Compute the boundary weights
Parameters: - mode : {‘reflect’, ‘periodic’, ‘any-constant’}, optional
The mode parameter determines how the array borders are handled. Default is ‘reflect’.
- mask : array-like, optional
Specify the mask, if None the mask is inferred from missing values
- drop_dims : list, optional
Specify dimensions along which the weights do not need to be computed
- 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: - weights : xarray.DataArray
Return a DataArray containing the weights