A repository of custom scripts that can be used with Sentinel-Hub services.

Normalized Difference Moisture Index (NDMI)

Show script or download it.

Evaluate and visualize

General description of the script

The NDMI is a normalized difference moisture index, that uses NIR and SWIR bands to display moisture. The SWIR band reflects changes in both the vegetation water content and the spongy mesophyll structure in vegetation canopies, while the NIR reflectance is affected by leaf internal structure and leaf dry matter content but not by water content. The combination of the NIR with the SWIR removes variations induced by leaf internal structure and leaf dry matter content, improving the accuracy in retrieving the vegetation water content. The amount of water available in the internal leaf structure largely controls the spectral reflectance in the SWIR interval of the electromagnetic spectrum. SWIR reflectance is therefore negatively related to leaf water content. NDWI is computed using the near infrared (NIR) and the short wave infrared (SWIR) reflectance’s:

Option 1

Used to monitor changes in water content of leaves, proposed by Gao.

NDWI = (B08 - B11) / (B08 + B11)

Option 2

Used to monitor changes related to water content in water bodies, using green and NIR wavelengths, defined by McFeeters (1996).

NDWI = (B03 - B08) / (B03 + B08)

Description of representative images

The NDMI of Rome, Italy. Acquired on 08.10.2017, processed by Sentinel Hub.



Normalize difference water index