raster Elevation raster (in m), using a projected coordinate system with identical x and y resolutions.
log
Boolean Return the natural log of the values.
atb
Boolean If TRUE, include both the upslope contributing area and the topographic wetness index \(ln(a/tan(beta))\). Otherwise calculate just the upslope area.
deg
numeric Minimum intercell slope to identify with a sink (degrees).
fill.sinks
Fill sinks before calculation using the threshold angle given by deg.
References
Quinn, P. FALSE., Beven, K. J., & Lamb, R. (1995). The In (a/tan/beta) index: How to calculate it and how to use it within the Topmodel framework. Hydrological processes, 9(2), 161-182.