CM.resampleCenterline: Resample centerline points

Description Usage Arguments Details Value Author(s) Examples

View source: R/CM.resampleCenterline.r

Description

Create an equally spaced centerline with a given interval length.

Usage

1
CM.resampleCenterline(cmgo.obj, set = NULL)

Arguments

cmgo.obj

the global object of type list containing data and parameters created with CM.ini()

set

an optional argument for processing a specific data set, if NULL all available data sets are used

Details

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.

Value

the global data object

Author(s)

Antonius Golly

Examples

1
2
3
4
5
# get the demo data set
cmgo.obj = CM.ini("demo2")

# resample centerline resolution
cmgo.obj = CM.resampleCenterline(cmgo.obj)

AntoniusGolly/cmgo documentation built on Sept. 24, 2021, 1:33 a.m.