xrspatial.mcda.combine.boolean_overlay#

xrspatial.mcda.combine.boolean_overlay(criteria: Dataset | dict[str, DataArray], operator: str = 'and', name: str = 'boolean_overlay') DataArray[source]#

Combine binary (boolean) criterion masks.

Parameters:
  • criteria (xr.Dataset or dict of str to xr.DataArray) – Boolean/binary criterion masks, either as a Dataset of mask variables (matching the other combination functions) or as a mapping of name to mask.

  • operator (str) – "and" (intersection) or "or" (union).

  • name (str) – Name of the output DataArray.

Returns:

Binary suitability mask.

Return type:

xr.DataArray