Learn R Programming

nightmares (version 0.0.2)

NBR: NBR - Normalized Burn Ratio

Description

NBR is used to identify burned areas and provide a measure of burn severity.

Usage

NBR(NIR, SWIR2)

Arguments

NIR

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

SWIR2

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

Value

NBR - Normalized Burn Ratio.

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)
NBR(x[[5]], x[[7]])

# }

Run the code above in your browser using DataLab