pyflwdir.FlwdirRaster.stream_distance#

FlwdirRaster.stream_distance(mask=None, unit='cell')[source]#

Returns distance to outlet or next downstream True cell in mask

Parameters:
  • mask (1D-array of bool, optional) – True if stream cell

  • unit ({'m', 'cell'}, optional) – length unit, by default ‘cell’

  • -------

  • float (1D array of) – distance to next downstream True cell, or outlet