NDWI#

NDWI(bands: dict) xarray.core.dataarray.DataArray[source]#

Normalized Difference Water Index (GREEN Version)

NDWI = (GREEN - NIR) / (GREEN + NIR)

For the SWIR version, see the NDMI.

Parameters

bands (dict) – Bands as {band_name: xr.DataArray}

Returns

Computed index

Return type

xr.DataArray