remove_plateaus: Remove sensor-caused plateaus (steps) in hydrographs.

Description Usage Arguments Details Value Author(s) Examples

Description

This filter removes sensor-caused plateaus (steps) in hydrographs, which may have originated from low-resolution sensors. Opposed to other filters, peak values are preserved.

Usage

1
remove_plateaus(runoff, method="start")

Arguments

runoff

vector of hydrograph

method

see details

Details

remove_plateaus(..., method="start") eliminates plateaus by interpolating linearly between the start of a plateau and the first following non-plateau-value. remove_plateaus(..., method="center") tries to include the points before, in the middle and after plateaus in the interpolation.

Value

Vector of cleansed hydrograph without plateaus.

Author(s)

Dominik Reusser, Till Francke

Examples

1
2
3
4
5
6
7
runoff          <- c(rep(1,3), 2, 3, rep(4,4), 5, rep(3,4), rep(NA,2), 4, rep(2,5), rep(1,6))
runoff_cleaned_start  <- remove_plateaus(runoff)
runoff_cleaned_center <- remove_plateaus(runoff, method="center")

plot(runoff, type="l")
lines(runoff_cleaned_start, col="red")
lines(runoff_cleaned_center, col="green", lty="dashed")

RHydro documentation built on May 2, 2019, 6:24 p.m.