calc_ndsi: Calculate Normalized Difference Snow Index (NDSI)

View source: R/calc_indices.R

calc_ndsiR Documentation

Calculate Normalized Difference Snow Index (NDSI)

Description

Computes the Normalized Difference Snow Index (NDSI) for mapping snow and ice cover.

Usage

calc_ndsi(green, swir1)

Arguments

green

Green band (terra::SpatRaster or numeric).

swir1

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

Details

NDSI = \frac{GREEN - SWIR1}{GREEN + SWIR1}

Value

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

References

Hall, D. K., Riggs, G. A., & Salomonson, V. V. (1995). Development of methods for mapping global snow cover using moderate resolution imaging spectroradiometer data. Remote Sensing of Environment, 54(2), 127-140.

See Also

geo_index

Examples

calc_ndsi(green = 0.8, swir1 = 0.2)


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