This tool calculates the number of downslope neighbours of each grid cell in a raster digital elevation model (DEM). The user must input a DEM (`dem`). The tool examines the eight neighbouring cells for each grid cell in a the DEM and counts the number of neighbours with an elevation less than the centre cell of the 3 x 3 window. The output image can therefore have values raning from 0 to 8. A raster grid cell with eight downslope neighbours is a peak and a cell with zero downslope neighbours is a pit. This tool can be used with the `NumUpslopeNeighbours` tool to assess the degree of local flow divergence/convergence.

## See Also

`NumUpslopeNeighbours`

## Function Signature

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

## Project Links

WbW Homepage User Manual Support WbW