calc_ndbi: Calculate Normalized Difference Built-up Index (NDBI)

View source: R/calc_indices.R

calc_ndbiR Documentation

Calculate Normalized Difference Built-up Index (NDBI)

Description

Computes the Normalized Difference Built-up Index (NDBI) for mapping urban and impervious surfaces.

Usage

calc_ndbi(swir1, nir)

Arguments

swir1

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

nir

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

Details

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

Value

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

References

Zha, Y., Gao, J., & Ni, S. (2003). Use of normalized difference built-up index in automatically mapping urban areas from TM imagery. IJRS, 24(3), 583-594.

See Also

calc_ibi, geo_index

Examples

calc_ndbi(swir1 = 0.6, nir = 0.3)


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