MarkOutlets

Marks the outlets on a map of drainage directions with the conventional value 10: the cells that drain out of the map, or into no-data cells, for example after the map was cut to a basin with CutOut. Several modules recognize the outlet by this value.

Parameters

Marks with the conventional value 10 the outlets on the map of the drainage directions: the cells that drain out of the map or into no-data cells.

Toolbox folder: Dem Manipulation
Status: Tested
Keywords: Outlets, Drainage directions, Raster
Authors: Antonello Andrea, Franceschi Silvia
Class: org.hortonmachine.modules.Markoutlets

Inputs

Parameter

Type

Unit

Default

Description

inFlow

raster file

The map of the drainage directions.

Outputs

Parameter

Type

Unit

Description

outFlow

output file

The map of the drainage directions with the outlets marked.

Example

The example runs on the sample elevation model of the manual, dtm_flanginec.tif in docs/manual/modules/maps/data, each module on the outputs of the previous ones:

import org.hortonmachine.modules.Markoutlets

// the folder with the elevation model: change it to yours
var folder = "/data/flanginec/"

// mark with 10 the outlet of the drainage directions cut to the basin
var markoutlets = new Markoutlets()
markoutlets.inFlow = folder + "drain_basin.tif"
markoutlets.outFlow = folder + "drain_marked.tif"
markoutlets.process()
The drainage directions of the basin of ExtractBasin, with the outlet marked with 10: the single red cell at the southwest end of the basin.

The drainage directions of the basin of ExtractBasin, with the outlet marked with 10: the single red cell at the southwest end of the basin.