Learn R Programming

nightmares (version 0.0.2)

BSI: BSI - Bare Soil Index

Description

BSI can be used for soil mapping and crop identification. This index relates the Blue, Red, Near Infrared and Short Wave Infrared bands.

Usage

BSI(B, R, NIR, SWIR1)

Arguments

B

A raster layer object with the reflectance values for the Blue band.

R

A raster layer object with the reflectance values for the Red band.

NIR

A raster layer object with the reflectance values for the Near Infrared band.

SWIR1

A raster layer object with the reflectance values for the Short Wave Infrared band.

Value

BSI - Bare Soil Index.

References

Rikimaru et al., 2002. Tropical forest cover density mapping. Tropical Ecology, 43, 39-47. https://www.geo.university/pages/spectral-indices-with-multispectral-satellite-data.

Examples

Run this code
# NOT RUN {
library(raster)
path_files <- system.file("extdata/", package="nightmares")
bands <- stack(list.files(path_files,".tif", full.names=TRUE))
x <- ref_oli(bands, sun.elev= 67.97)
BSI(x[[2]], x[[4]], x[[5]], x[[6]])

# }

Run the code above in your browser using DataLab