xrspatial.mcda.combine.owa#
- xrspatial.mcda.combine.owa(criteria: Dataset, weights: dict[str, float] | None = None, order_weights: list[float] | None = None, name: str = 'owa', *, criterion_weights: dict[str, float] | None = None) DataArray[source]#
Ordered Weighted Averaging.
Generalizes WLC by adding position-based order weights that control risk attitude. Order weights are applied to criterion values sorted by magnitude at each pixel, not by criterion identity.
- Parameters:
criteria (xr.Dataset) – Standardized criterion layers (0-1).
weights (dict) – Criterion weights as
{criterion_name: weight}, must sum to ~1.0. Same convention aswlc()andwpm(). Required; theNonedefault exists only to support the deprecatedcriterion_weightsalias.order_weights (list of float) – Weights applied by rank position (index 0 = highest value). Must have the same length as the number of criteria and sum to ~1.0.
name (str) – Name of the output DataArray.
criterion_weights (dict, optional) – Deprecated alias for
weights. EmitsDeprecationWarning.
- Returns:
Composite suitability surface.
- Return type:
xr.DataArray