Tca¶
The total contributing area of a cell is the number of cells that drain into it, itself included: multiplied by the area of a cell, it is the area of the basin closed at that cell. It grows along the paths of the water, and the cells with the largest values draw the network.
Tca computes it from any map of drainage directions. DrainDir already gives the contributing areas of the directions it corrects: Tca serves the other directions, as the D8 ones of FlowDirections or those edited by hand. With D8 directions on smooth slopes the water follows parallel straight lines, so the contributing areas grow in long straight stripes, unlike the ones of DrainDir.
Parameters¶
Calculates the total contributing area of each cell: the number of cells that drain into it along the drainage directions, itself included.
Toolbox folder: Geomorphology
Status: Experimental
Keywords: Geomorphology, Contributing area, Drainage directions
Authors: Antonello Andrea
Class: org.hortonmachine.modules.Tca
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
raster file |
The map of the drainage directions. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
cells |
The map of the total contributing areas, in cells. |
|
output file |
The vector of the loops found in the drainage directions, if any. |
Example¶
The example runs on the sample elevation model of the manual, dtm_flanginec.tif in docs/manual/modules/maps/data, each module on the outputs of the previous ones:
import org.hortonmachine.modules.Tca
// the folder with the elevation model: change it to yours
var folder = "/data/flanginec/"
// the contributing areas of the D8 directions, not corrected by DrainDir
var tca = new Tca()
tca.inFlow = folder + "flow.tif"
tca.outTca = folder + "tca_d8.tif"
tca.process()
The total contributing area of the D8 directions of FlowDirections, in cells: on the smooth slopes the water flows in parallel straight lines.¶