Description Usage Arguments Details Value Examples
contributiontopeak
calculates the contribution of each cell of a digital elevation dataset to
peak flow
1 | contributiontopeak(ft, basins, bysize = TRUE)
|
ft |
a raster object, two-dimensional array or matrix of flow times as returned by |
basins |
a raster object, two-dimensional array or matrix with basins numbered as integers as
returned by |
bysize |
an optional logical indicating whether or not to weight values by basin size |
contribution to peak flow is calculated by fitting a log-normal distribution
to flow times, estimating the probability density function (pdf) of this distribution, weighted
by the maximum value of of the pdf. If bysize
is TRUE, output values are multiplied
by the size of the basin thereby making the assumption that larger basins have higher
peak flow. Alternatively real peak flows can be estimated from meterological
data.
a raster object of the contribution of each cell to peak flow
1 2 3 4 | basins <- basindelin(dtm100m) # Takes ~20 seconds to run
ft <- flowtimes(dtm100m)
plot(contributiontopeak(ft, basins))
plot(contributiontopeak(ft, basins, bysize = F))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.