Topological optimization

Command line

The Topological Optimization operation can be directly executed by typing the following expression on the command line of the Main window:

  

OUTMAP

=

MapTopologicalOptimization(drainnetwork_rasmap, flowdir_rasmap, stream_segmap, output_modified_flowdir_rasmap)

where:

OUTMAP

is the name of the output raster map that will contain an updated drainage network.

MapTopologicalOptimization

is the command to start the Topological Optimization operation.

drainnetwork_rasmap

is a raster map that is the outcome of a previous Drainage Network Extraction operation, i.e. a raster map with a Bool domain.

flowdir_rasmap

is a raster that is the outcome of a previous Flow Direction operation, i.e. a raster map with system domain FlowDirection.

stream_segmap

is a segment map containing straight lines between inlets and outlets, e.g. in lakes.

output_modified_flowdir_rasmap

is the name of an updated output flow direction raster map that will contain improved flow directions.

When the definition symbol = is used, a dependent output map is created; when the assignment symbol := is used, the dependency link is immediately broken after the output map has been calculated.

See also: