NDVI | R Documentation |
Function for NDVI calculation
NDVI(Red, NIR)
Red |
SpatRaster object, red band of remote sensing imagery |
NIR |
SpatRaster object, NIR band of remote sensing imagery |
SpatRaster
red <- terra::rast(ncol=100, nrow=100)
set.seed(2)
terra::values(red) = runif(10000, min=0.1, max=0.4)
NIR <- terra::rast(ncol=100, nrow=100)
set.seed(2)
terra::values(NIR) = runif(10000, min=0.1, max=0.6)
NDVI(Red = red, NIR = NIR)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.