Determine the absolute 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 is the
difference in meters. A positive value indicates that the historical axis
shortened over time and a positive value indicates that the recent axis is
longer than the historical one within the specified area.
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
getAxisADiff(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] 577.9273
getAxisADiff(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.01846505
