fastscapelib.MSTSinkResolver#

class fastscapelib.MSTSinkResolver#

Minimum Spanning Tree (MST) sink resolver operator.

This flow operator re-routes the flow trapped in closed depressions towards their spill, using an efficient algorithm that explicitly computes a graph of (inner and outer) basins and reduces it as a tree [CBB19].

It requires a single flow graph as input.

This operator also use the updated routes in closed depressions to fill these with nearly flat surfaces (a tiny slope ensure natural flow routing for the operators applied after this one).

__init__(self, basin_method: MSTMethod = MSTMethod.KRUSKAL, route_method: MSTRouteMethod = MSTRouteMethod.CARVE) None#

MSTSinkResolver initializer.

Parameters:
  • basin_method (MSTMethod) – Basin simplification algorithm selector.

  • route_method (MSTRouteMethod) – Method used to route the flow within inner basins.

Methods

__init__(self[, basin_method, route_method])

MSTSinkResolver initializer.

Attributes

basin_method

Basin simplification algorithm.

elevation_updated

graph_updated

in_flowdir

name

Flow operator's name.

out_flowdir

route_method

Method used to route the flow within inner basins.

property basin_method#

Basin simplification algorithm.

property route_method#

Method used to route the flow within inner basins.