aspect
Calculate downslope azimuth in degrees from a DEM and save as GeoTIFF. Flat cells are marked -1; reproject geographic CRS to projected first.
Instructions
Aspect from a DEM: downslope azimuth in degrees, 0 = north. GeoTIFF in/out.
FLAT CELLS ARE -1, not nodata — mask them before averaging aspect over an area, or the average is plausibly wrong. DEMs in a geographic CRS are refused (see slope): reproject to a projected CRS first. 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": "aspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dem_path | Yes | ||
| z_factor | No | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||