resize_reaches | R Documentation |
Resize reaches from a delineated stream
resize_reaches(x, Tp, len, min_len = 0.5 * len, trim = TRUE)
x |
A raster stream stack, such as one created by |
Tp |
A pixel topology |
len |
The target length of resized reaches (in map units) |
min_len |
How small is the smallest acceptable reach? |
trim |
Logical; remove headwater reaches smaller than min_length? |
A raster similar to x
with reaches resized
data(kamp_dem) x = delineate(kamp_dem) Tp = pixel_topology(x) x[['stream']] = resize_reaches(x, Tp, 1000, 600)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.