wq_calc: Water quality calculation

View source: R/wq_calc.R

wq_calcR Documentation

Water quality calculation

Description

Calculates a set of water quality indices

Usage

wq_calc(terraRast, alg = "all", sat, ...)

Arguments

terraRast

Terra SpatRaster containing a satellite data

alg

Name (e.g. Am09KBBI()) or type of the algorithm ("chlorophyll", "phycocyanin", "turbidity") or "all"

sat

Name of the satellite or instrument ("worldview2", "sentinel2", "landsat8", "modis", "meris", or "OLCI")

...

Other arguments passed on to terra::rast()

Value

SpatRaster

Examples

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)

waterquality documentation built on Aug. 8, 2023, 1:07 a.m.