This tool can be used to calculate the topographic wetness index, commonly used in the TOPMODEL rainfall-runoff framework. The index describes the propensity for a site to be saturated to the surface given its contributing area and local slope characteristics. It is calculated as:

> WI = Ln(As / tan(Slope))

Where `As` is the specific catchment area (i.e. the upslope contributing area per unit contour length) estimated using one of the available flow accumulation algorithms in the Hydrological Analysis toolbox. Notice that `As` must not be log-transformed prior to being used; log-transformation of `As` is a common practice when visualizing the data. The slope image should be measured in degrees and can be created from the base digital elevation model (DEM) using the slope tool. Grid cells with a slope of zero will be assigned NoData in the output image to compensate for the fact that division by zero is infinity. These very flat sites likely coincide with the wettest parts of the landscape. The input images must have the same grid dimensions.

Grid cells possessing the NoData value in either of the input images are assigned NoData value in the output image. The output raster is of the float data type and continuous data scale.

See Also slope, `D8FlowAccumulation`, `DInfFlowAccumulation`, `FD8FlowAccumulation`, breach_depressions_least_cost

## Function Signature

`def wetness_index(self, specific_catchment_area: Raster, slope: Raster) -> Raster: ...`

## Project Links

WbW Homepage User Manual Support WbW