The NDVI formula is:
library(rLandsat8)
setwd("~/Downloads")
product <- "LC82040322013219LGN00"
l <- ReadLandsat8(product)
ndvi <- ToNDVI(l)
The MNDWI formula is:
library(rLandsat8)
setwd("~/Downloads")
product <- "LC82040322013219LGN00"
l <- ReadLandsat8(product)
ndvi <- ToMNDWI(l)
The LSWI formula is:
library(rLandsat8)
setwd("~/Downloads")
product <- "LC82040322013219LGN00"
l <- ReadLandsat8(product)
ndvi <- ToLSWI(l)
The Normalized Difference Vegetation Index (NDVI), Modified Normalized Difference Water Index (MNDWI) and Land Surface Water Index (LSWI) need to compute the TOA Reflectance, so you can choose to use the sun angle correction, if sun angle correction is required, specifying is.suncorrected = TRUE (default value is is.suncorrected = FALSE)
library(rLandsat8)
setwd("~/Downloads")
product <- "LC82040322013219LGN00"
l <- ReadLandsat8(product, is.suncorrected = TRUE)
ndvi <- ToMNDWI(l)