varNBR: Calculate the normalized burn ratio (NBR)

Description Usage Arguments Details Value References Examples

View source: R/varNBR.R

Description

varNBR computes the normalized burn ratio (NBR) from the near-infrared (NIR) and shortwave-infrared 2 (SWIR2) bands.

Usage

1
varNBR(nir, swir2)

Arguments

nir

a raster with the NIR band of the capture.

swir2

a raster with the SWIR2 band of the capture.

Details

The normalized burn ratio (NBR) is an index that identifies burned areas by comparing its value before and after the fire event. It is calculated using the NIR and SWIR2 bands \insertCitegarcia1991mappingRGISTools.This function is used within ls7FolderToVar, ls8FolderToVar, modFolderToVar and senFolderToVar.

Value

A NBR image in raster format.

References

\insertRef

garcia1991mappingRGISTools

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# path to the cropped and cutted MODIS images for the region of Navarre
wdir <- system.file("ExNavarreVar", package = "RGISTools")
# list all the tif files
files.mod <- list.files(wdir, pattern="\\.tif$", recursive = TRUE, full.names = TRUE)
# print the MOD09 bands
getRGISToolsOpt("MOD09BANDS")

# select the NIR and SWIR2 bands
files.mod.nir <- raster(files.mod[2])
files.mod.swir2 <- raster(files.mod[7])
# calculate the NBR image
files.mod.nbr <- varNBR(files.mod.nir, files.mod.swir2)
# plot the image
spplot(files.mod.nbr,col.regions=rev(heat.colors(20)))

RGISTools documentation built on July 2, 2020, 3:58 a.m.