Determine the relative difference in length of the River Elbe
comparing the historical river axis from the year 1800 sf.axis1800 and
the recent course of the river sf.axis for a specific hectometer
and within an adjustable buffer distance. The returned value of the
function is to be interpreted as in the following examples:
-3 ==> The historical axis was 3% longer than the recent axis with the selected polygons of
sf.afe_csa.3 ==> The historical axis was 3% shorter than the recent axis with the selected polygons of
sf.afe_csa.
Arguments
- x
must be a single
integerindexing one hectometer polygon ofsf.afe_csaalong the River Elbe.xmust be element ofseq(from = 1, to = length(sf.afe_csa), by = 1).- b
must be a single
numericspecifying a buffersize to be included for the axis length computations around the indexed hectometer in m.- bu
is an optional single
numericspecifying a separate upstream buffersize to be included for the axis length computations around the indexed hectometer in m (default =b).
Examples
getAxisPDiff(3325, 200)
#> Warning: attribute variables are assumed to be spatially constant throughout all geometries
#> Warning: attribute variables are assumed to be spatially constant throughout all geometries
#> [1] 0.3427213
getAxisPDiff(3900, 200)
#> Warning: attribute variables are assumed to be spatially constant throughout all geometries
#> Warning: attribute variables are assumed to be spatially constant throughout all geometries
#> [1] 0.9999389
