urbanlc.model.pipeline_transforms.compute_NDWI#
- urbanlc.model.pipeline_transforms.compute_NDWI(img: ndarray, index_green: int, index_nir: int) ndarray #
Compute the Normalized Difference Water Index (NDWI).
- Parameters:
img (np.ndarray) – Landsat image.
index_green (int) – Index of the Green band in the image.
index_nir (int) – Index of the Near-Infrared (NIR) band in the image.
- Returns:
NDWI computed from the input image.
- Return type:
np.ndarray