flow_accumulation
Computes D8 flow accumulation from a DEM, filling depressions first. Outputs upslope cell count or specific catchment area as a GeoTIFF for hydrology and watershed analysis.
Instructions
D8 flow accumulation from a DEM (GeoTIFF in/out). Depressions are filled first.
out_type: 'cells' (upslope cell count, includes the cell itself) or 'sca' (specific catchment area). log_transform=True for visualization-friendly values. Requires the [whitebox] extra.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dem_path": "<dem_path>",
"output_path": "<output_path>"
},
"name": "flow_accumulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dem_path | Yes | ||
| out_type | No | cells | |
| output_path | Yes | ||
| log_transform | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||