calc_ndmi: Calculate Normalized Difference Moisture Index (NDMI)

View source: R/calc_indices.R

calc_ndmiR Documentation

Calculate Normalized Difference Moisture Index (NDMI)

Description

Computes the Normalized Difference Moisture Index (NDMI) to assess vegetation canopy liquid water content.

Usage

calc_ndmi(nir, swir1)

Arguments

nir

Near-infrared band (terra::SpatRaster or numeric).

swir1

Short-wave infrared 1 band (terra::SpatRaster or numeric).

Details

NDMI = \frac{NIR - SWIR1}{NIR + SWIR1}

Value

A terra::SpatRaster (named "NDMI") or numeric vector with index values.

References

Gao, B. C. (1996). NDWI—A normalized difference water index for remote sensing of vegetation liquid water from space. Remote Sensing of Environment, 58(3), 257-266.

See Also

calc_msi, geo_index

Examples

calc_ndmi(nir = 0.7, swir1 = 0.3)


GeoIndexR documentation built on Oct. 10, 2026, 5:08 p.m.