Description Usage Arguments Details Value Author(s) Examples
View source: R/CM.resampleCenterline.r
Create an equally spaced centerline with a given interval length.
1 | CM.resampleCenterline(cmgo.obj, set = NULL)
|
cmgo.obj |
the global object of type list containing data and parameters created with |
set |
an optional argument for processing a specific data set, if |
The spatial resolution of the centerline depends on the spatial resolution of the bank points which is directly dependent on the parameter par$polygon.bank.interpolate.max.dist. A small interpolation distance is necessary for complex bed shapes. However, for further metric analyes a large number of centerline points is not necessary. Since they can introduce high computational costs during further calculation you can resample the centerline intervals with this function CM.resampleCenterline(). decreasing the resolution to a given value. This will have slight impact on the length of the centerline. Since you are losing detail a coarser interval will decrease the length of the centerline.
the global data object
Antonius Golly
1 2 3 4 5 | # get the demo data set
cmgo.obj = CM.ini("demo2")
# resample centerline resolution
cmgo.obj = CM.resampleCenterline(cmgo.obj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.