calc_bsi: Calculate Bare Soil Index (BSI)

View source: R/calc_indices.R

calc_bsiR Documentation

Calculate Bare Soil Index (BSI)

Description

Computes the Bare Soil Index (BSI), combining blue, red, NIR, and SWIR bands to distinguish bare soils from vegetation and impervious land.

Usage

calc_bsi(swir1, red, nir, blue)

Arguments

swir1

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

red

Red band (terra::SpatRaster or numeric).

nir

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

blue

Blue band (terra::SpatRaster or numeric).

Details

BSI = \frac{(SWIR1 + RED) - (NIR + BLUE)}{(SWIR1 + RED) + (NIR + BLUE)}

Value

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

References

Rikimaru, A., Roy, P. S., & Miyatake, S. (2002). Tropical forest cover density mapping. Tropical Ecology, 43(1), 39-47.

See Also

geo_index

Examples

calc_bsi(swir1 = 0.5, red = 0.4, nir = 0.2, blue = 0.1)


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