NDVI {LST}R Documentation

NDVI

Description

Function for NDVI calculation

Usage

NDVI(Red, NIR)

Arguments

Red

Raster* object, red band of remote sensing imagery

NIR

Raster* object, NIR band of remote sensing imagery

Value

RasterLayer

Examples

red <- raster::raster(ncol=100, nrow=100)
set.seed(2)
raster::values(red) = runif(10000, min=0.1, max=0.4)

NIR <- raster::raster(ncol=100, nrow=100)
set.seed(2)
raster::values(NIR) = runif(10000, min=0.1, max=0.6)

NDVI(Red = red, NIR = NIR)

[Package LST version 1.1.0 Index]