xarray.core.weighted.DatasetWeighted.sum_of_weights¶
-
DatasetWeighted.
sum_of_weights
(dim: Union[Hashable, Iterable[Hashable], None] = None, keep_attrs: Optional[bool] = None) → Union[DataArray, Dataset]¶ Calculate the sum of weights, accounting for missing values in the data
Parameters: Returns: reduced – New Dataset object with the sum of the weights over the given dimension.
Return type: