Terrain Rivers
1 node
On this page 1
Trace Rivers
FunctionA 0..1 river mask: 1 on water, falling to 0 over Edge Softness Metres at the banks.
Signature
TraceRivers -> Scalar Field
heightmap: Scalar Field
minimumCatchmentSquareKilometres: Number
widthAtOneSquareKilometreMetres: Number
minimumWidthMetres: Number
edgeSoftnessMetres: Number
mainStemOnly: Truth
standingWaterMetres: Number
maximumGradient: NumberScalarField2D TraceRivers(
ScalarField2D heightmap,
double minimumCatchmentSquareKilometres = 0.5,
double widthAtOneSquareKilometreMetres = 12,
double minimumWidthMetres = 0,
double edgeSoftnessMetres = 3,
bool mainStemOnly = false,
double standingWaterMetres = 0,
double maximumGradient = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| heightmap | Scalar Field | — | The terrain, metres; usually the eroded heightmap. |
| minimumCatchmentSquareKilometres | Number | 0.5 | Catchment at which a channel counts as a river; smaller values bring in tributaries. With Main Stem Only, where the traced stem ends upstream. |
| widthAtOneSquareKilometreMetres | Number | 12 | River width where its catchment is one square kilometre; width grows with the square root of catchment, as hydraulic geometry has it. |
| minimumWidthMetres | Number | 0 | The narrowest a river is drawn. A map cut out of a landscape that a large river crosses sees only the small part of its catchment that lies on the map, so the catchment alone would draw it far too thin; this is its real width. |
| edgeSoftnessMetres | Number | 3 | Width of the fall-off at each bank. |
| mainStemOnly | Truth | False | Only the main river: from the outlet that drains the most, upstream along the donor that drains the most at every step, to where its catchment falls below Minimum Catchment Square Kilometres. |
| standingWaterMetres | Number | 0 | Spreads the water from the traced river over the connected ground lying within this height of it, above or below, - the flat water surface a survey records where the river runs wide. 0 draws the traced path alone. |
| maximumGradient | Number | 0 | With Main Stem Only, where the stem stops climbing: rise over run (0.02 is 2 m per 100 m) averaged over the last 200 m, from 400 m above the mouth. A large river is nearly level, and on a map cut out of a landscape most of its catchment lies off the map, so upstream the largest donor can be a side canyon climbing out of the gorge; this ends the river where that climb begins. 0 does not limit it. |
Returns
| result | Scalar Field |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Terrain Rivers
- Package
- Procedural Generation