pyflwdir.FlwdirRaster.dem_dig_d4#

FlwdirRaster.dem_dig_d4(elevtn, rivmsk=None, nodata=-9999.0)[source]#

Returns the hydrologically adjusted elevation where for each cell river cell there is an adjacent D4 connected cell which has has the same or lower elevation as the current cell.

Parameters:
  • elevtn (2D array of float) – elevation raster

  • rivmsk (2D array of bool, optional) – river mask

Returns:

elv_out – elevation raster

Return type:

2D array of float