Learn R Programming

nightmares (version 0.0.2)

NBR2: NBR2 - Normalized Burn Ratio 2

Description

NBR2 modifies the Normalized Burn Ratio to highlight water sensitivity in vegetation and may be useful in post-fire recovery studies.

Usage

NBR2(SWIR1, SWIR2)

Arguments

SWIR1

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

SWIR2

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

Value

NBR2 - Normalized Burn Ratio 2.

References

https://www.usgs.gov/core-science-systems/nli/landsat/landsat-surface-reflectance-derived-spectral-indices. 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)
NBR2(x[[6]], x[[7]])

# }

Run the code above in your browser using DataLab