Divooka Reference

Terrain Water Settings

34 nodes

On this page 34

Make Terrain Water Settings

Function

This node carries no documentation.

Signature
TerrainWaterSettings() -> Terrain Water Settings
TerrainWaterSettings TerrainWaterSettings()

Returns

Terrain Water SettingsTerrain Water Settings
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Bed Depth Metres

Function

The bed the result gives under water is at least this far below the water surface, deepening from the shore over TerrainWaterSettings.BedSlopeMetres; where the ground is already deeper it is kept. A hydro-flattened survey has no bathymetry, and water a few centimetres deep over flat ground reads as a puddle; 0 keeps the ground as it is.

Signature
BedDepthMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double BedDepthMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Bed Slope Metres

Function

Distance from the shore over which the synthetic bed reaches about two thirds of TerrainWaterSettings.BedDepthMetres, metres.

Signature
BedSlopeMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double BedSlopeMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Channel Catchment Square Kilometres

Function

Catchment at which a channel starts, km², for the height above nearest drainage (HAND, Rennó et al. 2008): every cell's height above the channel cell its water first reaches.

Signature
ChannelCatchmentSquareKilometres(Terrain Water Settings: Terrain Water Settings) -> Number
double ChannelCatchmentSquareKilometres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Detect Flat Water

Function

Find water the survey recorded. Lidar returns from water are discarded and the gap is "hydro-flattened": a lake becomes one exactly level surface, a wide river a run of level steps. A large, level region lying lower than most of its surroundings is water.

Signature
DetectFlatWater(Terrain Water Settings: Terrain Water Settings) -> Truth
bool DetectFlatWater(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Fill Depressions

Function

Fill closed depressions with water up to the height at which they spill (priority-flood, Barnes et al. 2014): tarns, kettle ponds, pools in a riverbed, and the sinks of closed basins.

Signature
FillDepressions(Terrain Water Settings: Terrain Water Settings) -> Truth
bool FillDepressions(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Flat Tolerance Metres

Function

How far a cell may lie from the level of the flat region it joins, metres. Real ground is never this level over a large area; hydro-flattened water is level to the float.

Signature
FlatToleranceMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double FlatToleranceMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Flat Water Lift Metres

Function

How far the water surface of flat water sits above the flattened ground, metres, so the water's geometry does not coincide with the terrain's. TerrainWaterSettings.BedDepthMetres gives it a bed below that.

Signature
FlatWaterLiftMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double FlatWaterLiftMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Flat Water Minimum Enclosure

Function

The share of a flat region's rim that must rise above it for it to count as water: a lake or a river lies below its banks, a mesa top or a terrace lies above what surrounds it.

Signature
FlatWaterMinimumEnclosure(Terrain Water Settings: Terrain Water Settings) -> Number
double FlatWaterMinimumEnclosure(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Flood Stage Metres

Function

Flood every valley floor to this height above its channel, metres, as HAND flood mapping does with a river stage: the water surface is the channel's height plus the stage, and every cell draining to that channel lower than it is under water. Floods every channel at once, side canyons included; 0 floods nothing.

Signature
FloodStageMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double FloodStageMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Lake Catchment Ratio

Function

Catchment a lake needs per square metre of its surface to stay full, the ratio of evaporation from open water to runoff from its catchment: about 2 to 10 in wet mountains, 20 to 100 in semi-arid country, several hundred in a desert. A depression whose catchment falls short stands at the level whose area it can keep wet, or dries out. 0 fills every lake to its spill height regardless.

Signature
LakeCatchmentRatio(Terrain Water Settings: Terrain Water Settings) -> Number
double LakeCatchmentRatio(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Lake Fill Fraction

Function

How full each lake is, as a fraction of its depth from its lowest point to its spill height: 1 is brim-full, as a lake with an outlet stream is; less leaves the lower stand of a closed basin in a dry climate.

Signature
LakeFillFraction(Terrain Water Settings: Terrain Water Settings) -> Number
double LakeFillFraction(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Maximum River Climb Metres

Function

The highest a reach may climb above the local valley floor to join two crossings, metres. A meandering river can leave the map and come back; the reaches on either side of a meander neck that lies off the map are joined only over the neck, so they stay separate reaches.

Signature
MaximumRiverClimbMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double MaximumRiverClimbMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Minimum Flat Water Area Square Metres

Function

The smallest flat region taken as water, m². USGS flattens lakes of 2 acres (8,000 m²) and rivers 30 m wide, so pieces of a flattened river can be small.

Signature
MinimumFlatWaterAreaSquareMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double MinimumFlatWaterAreaSquareMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Minimum Lake Area Square Metres

Function

A depression holds a lake only if its water covers at least this much ground, m². Survey noise leaves countless tiny pits; this is what keeps them dry.

Signature
MinimumLakeAreaSquareMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double MinimumLakeAreaSquareMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Minimum Lake Depth Metres

Function

A depression holds a lake only if it is at least this deep below its spill height, metres.

Signature
MinimumLakeDepthMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double MinimumLakeDepthMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Minimum Notch Depth Metres

Function

With automatic river ends, the least depth of a border notch below its sides for the river to cross the border through it, metres.

Signature
MinimumNotchDepthMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double MinimumNotchDepthMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Depth Metres

Function

Water depth over the river's thalweg, metres. The surface never rises downstream, so pools upstream of a riffle fill to the riffle's level and run deeper. Where the thalweg crosses flat water the survey recorded, the recorded surface is used instead, so on hydro-flattened data the depth only matters between flattened pieces and a small value suits it.

Signature
RiverDepthMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverDepthMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Entry U

Function

Where the river enters, as a fraction of the map's width (columns) and depth (rows), 0..1. NaN, here or in the exit, finds the crossings in the border instead: every notch at least TerrainWaterSettings.MinimumNotchDepthMetres deep whose floor lies within TerrainWaterSettings.RiverFallMetres of the lowest one.

Signature
RiverEntryU(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverEntryU(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Entry V

Function

This node carries no documentation.

Signature
RiverEntryV(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverEntryV(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Exit U

Function

Where the river leaves, as a fraction of the map's width and depth, 0..1. With the entry given, the river runs between the two whatever lies between them.

Signature
RiverExitU(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverExitU(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Exit V

Function

This node carries no documentation.

Signature
RiverExitV(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverExitV(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Fall Metres

Function

How far the river falls across the map, metres: border notches whose floor lies higher than this above the lowest notch are side valleys, not the river.

Signature
RiverFallMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverFallMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Maximum Half Width Metres

Function

How far the river spreads from its thalweg over ground below its surface, metres. Bounds a flood across a wide flat floodplain; it should be wider than the river, because the thalweg can hug one bank and where the limit rather than a bank stops the water, its edge stands above the ground.

Signature
RiverMaximumHalfWidthMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverMaximumHalfWidthMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

River Surface Smoothing Metres

Function

How far the river's surface is averaged over its own water, metres, 0 for not at all. Spreading from the thalweg gives each cell the level of the thalweg cell nearest it, a fan of level wedges a few centimetres apart around every bend, and a renderer shades every step as a line across the water; averaging makes the surface continuous. Two reaches nearer than about twice this across dry ground average into each other.

Signature
RiverSurfaceSmoothingMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double RiverSurfaceSmoothingMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Sea From Border Only

Function

Only ground below sea level that connects to the map's border is sea; inland ground below it, as in a polder or the Dead Sea's basin, stays dry unless a lake fills it.

Signature
SeaFromBorderOnly(Terrain Water Settings: Terrain Water Settings) -> Truth
bool SeaFromBorderOnly(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Sea Level

Function

Sea level, metres. Ground below it is sea. NaN has no sea.

Signature
SeaLevel(Terrain Water Settings: Terrain Water Settings) -> Number
double SeaLevel(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Shore Softness Metres

Function

The water mask falls from 1 to 0 over this distance across the shoreline, metres.

Signature
ShoreSoftnessMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double ShoreSoftnessMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Through River

Function

A river crossing the map, fed from off it: the cheapest paths along the valley floor between the places it crosses the map's border, filled to TerrainWaterSettings.RiverDepthMetres. This is what a canyon or a large valley cut out of a landscape needs; its river carries a catchment that lies off the map, so drainage on the map cannot find it.

Signature
ThroughRiver(Terrain Water Settings: Terrain Water Settings) -> Truth
bool ThroughRiver(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Valley Floor Height Metres

Function

Height above drainage at which the valley-floor mask has fallen to 0, metres.

Signature
ValleyFloorHeightMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double ValleyFloorHeightMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Valley Radius Metres

Function

Radius of the window whose lowest point is the local valley floor, metres. The path's cost rises with height above that floor; the window must be wider than the valley floor and narrower than the spurs between meanders.

Signature
ValleyRadiusMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double ValleyRadiusMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Valley Tolerance Metres

Function

Height above the local valley floor that multiplies the path's cost by e, metres. Small values hold the path to the thalweg; larger ones let it cut across bars.

Signature
ValleyToleranceMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double ValleyToleranceMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Wet Bank Distance Metres

Function

The wet-bank mask is 0 this far from the water, metres.

Signature
WetBankDistanceMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double WetBankDistanceMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation

Wet Bank Height Metres

Function

The wet-bank mask is 0 this high above the nearby water surface, metres: the height splash, seepage and floods keep wet.

Signature
WetBankHeightMetres(Terrain Water Settings: Terrain Water Settings) -> Number
double WetBankHeightMetres(TerrainWaterSettings Terrain Water Settings)

Parameters

nametypedefaultdescription
Terrain Water SettingsTerrain Water Settings—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Terrain Water Settings
Package
Procedural Generation