Learn R Programming

topmodel (version 0.7.3)

sinkfill: Fill sinks in a digital elevation model

Description

Removes sinks in a digital elevation model by filling depressions

Usage

sinkfill(DEM,res,degree)

Arguments

DEM

A matrix representing a digital elevation model [m] with equally sized pixels and equal x and y resolution

res

Resolution of the digital elevation model [m]

degree

Minimum slope to be kept between cells when filling [degrees]

Value

A matrix of the same size as the DEM.

Details

For deep sinks or large maps, it may be possible that not all sinks are filled in one run. Then the function should be applied repeatedly over the same object.

References

See http://paramo.cc.ic.ac.uk/topmodel_tutorial for examples.

See Also

topmodel, topidx

Examples

Run this code
# NOT RUN {
data(huagrahuma.dem)
filled.dem <- sinkfill(huagrahuma.dem, 25, 0.1)
# }

Run the code above in your browser using DataLab