Learn R Programming

whitebox (version 0.1.0)

normalized_difference_vegetation_index: Normalized difference vegetation index

Description

Calculates the normalized difference vegetation index (NDVI) from near-infrared and red imagery.

Usage

normalized_difference_vegetation_index(nir, red, output, clip = 0,
  osavi = FALSE, verbose_mode = FALSE)

Arguments

nir

Input near-infrared band image.

red

Input red band image.

output

Output raster file.

clip

Optional amount to clip the distribution tails by, in percent.

osavi

Optional flag indicating whether the optimized soil-adjusted veg index (OSAVI) should be used.

verbose_mode

Sets verbose mode. If verbose mode is False, tools will not print output messages.

Value

Returns the tool text outputs.