pyflwdir.FlwdirRaster.order_cells#
- FlwdirRaster.order_cells(method='sort')#
Order cells from down- to upstream.
- Parameters:
method ({'sort', 'walk'}, optional) – Method to order nodes, based on a “sorting” algorithm where nodes are sorted based on their rank (might be slow for large arrays) or “walking” algorithm where nodes are traced from down- to upstream (uses more memory)