This tool will calculate the elevation of each grid cell in a digital elevation model (DEM) above the nearest downslope pit cell or grid edge cell, depending on which is encountered first during the flow-path traverse. The resulting image is therefore a measure of relative landscape position. The user must input a D8 flow pointer grid and a DEM file. The flow pointer grid must be derived using the D8 flow algorithm.

## See Also

elevation_above_stream

## Function Signature

`def elevation_above_pit(self, dem: Raster) -> Raster: ...`

## Project Links

WbW Homepage User Manual Support WbW