Learn R Programming

ASIP (version 0.4.9)

ndbi: Normalized Difference Built-up Index

Description

Normalized Difference Built-up Index (NDBI) is used for mapping built-up areas

Usage

ndbi(directory = getwd(), crop = "n", ext2crop = "none")

Arguments

ext2crop, crop, directory

Same as mentioned in arvi.

Value

Computed NDBI product

References

Zha Y, Gao J and Ni S (2003) Use of normalized difference built-up index in automatically mapping urban areas from TM imagery. International Journal of Remote Sensing, 24 (3), pp:583-594. doi:10.1080/01431160304987.

Examples

Run this code
# NOT RUN {
library (raster)
library (rgdal)
# Finding the path of the sample satellite image directory.
# User may define paths directly like "/home/ur_folder" or "C:/ur_folder"
path <- system.file ("TM_sample", package = "ASIP")
shapefil <- paste0 (path, "/test.shp")
op <- ndbi (directory = path, crop = "y", ext2crop = shapefil)
# }

Run the code above in your browser using DataLab