xarray.core.weighted.DataArrayWeighted.sum_of_weights¶
-
DataArrayWeighted.
sum_of_weights
(self, dim: Union[Hashable, Iterable[Hashable], NoneType] = None, keep_attrs: Union[bool, NoneType] = None) → Union[ForwardRef('DataArray'), ForwardRef('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