Learn R Programming

RGISTools (version 0.9.7)

varNBR2: Calculate normalized burn ratio 2 (NBR2)

Description

varNBR2 computes the NBR2 index from SWIR1 and SWIR2 bands.

Usage

varNBR2(swir1, swir2)

Arguments

swir1

a raster with the the SWIR1 band of the capture.

swir2

a raster with the the SWIR2 band of the capture.

Value

A NBR2 image in raster format.

Details

The normalized burn ratio 2 (NRB) is an index to identify burned areas. In contrast to NBR, NRB2 highlights the sensitivity to water in vegetation lutes2006firemonRGISTools. This function is used within ls7FolderToVar, ls8FolderToVar, modFolderToVar and senFolderToVar.

References

lutes2006firemonRGISTools

Examples

Run this code
# NOT RUN {
# path to the cropped and cutted MODIS images for the region of Navarre
img.dir <- system.file("ExNavarreVar", package = "RGISTools")
# list all the tif files
img.files <- list.files(img.dir, pattern="\\.tif$", recursive = TRUE, full.names = TRUE)
# print the MOD09 bands
getRGISToolsOpt("MOD09BANDS")

# select the SWIR1 and SWIR2 bands
swir1 <- raster(img.files[6])
swir2 <- raster(img.files[7])
# calculate the NBR2 image
nbr2 <- varNBR2(swir1,swir2)
# plot the image
spplot(nbr2,col.regions=rev(heat.colors(20)))
# }

Run the code above in your browser using DataLab