wq_calc | R Documentation |
Calculates a set of water quality indices
wq_calc(terraRast, alg = "all", sat, ...)
terraRast |
Terra SpatRaster containing a satellite data |
alg |
Name (e.g. |
sat |
Name of the satellite or instrument ("worldview2", "sentinel2", "landsat8", "modis", "meris", or "OLCI") |
... |
Other arguments passed on to |
SpatRaster
library(terra)
# sentinel2 example
s2 = terra::rast(system.file("raster/S2_Harsha.tif", package = "waterquality"))
s2_Al10SABI = wq_calc(s2, alg = "Al10SABI", sat = "sentinel2")
s2_two_alg = wq_calc(s2, alg = c("TurbChip09NIROverGreen", "Am092Bsub"), sat = "sentinel2")
## Not run: (
s2_wq = wq_calc(s2, alg = "all", sat = "sentinel2")
# landsat8 example
l8 = terra::rast(system.file("raster/L8_Taylorsville.tif", package = "waterquality"))
l8_wq = wq_calc(s2, alg = "all", sat = "landsat8")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.