This tool can be used to identify ridge cells in a digital elevation model (DEM). Ridge cells are those that have lower neighbours either to the north and south or the east and west. Line thinning can optionally be used to create single-cell wide ridge networks by specifying the line_thin
parameter.
def find_ridges(self, dem: Raster, line_thin: bool = True) -> Raster: ...