pyflwdir.FlwdirRaster.to_array#

FlwdirRaster.to_array(ftype=None)[source]#

Return 2D flow direction raster.

Parameters:

ftype ({'d8', 'ldd', 'nextxy'}, optional) – name of flow direction type, by default None; use input ftype.

Returns:

flow direction raster

Return type:

2D array of int