reconstruct_daily_rainfall_events: Extract rainfall Events per slide

Description Usage Arguments Value

View source: R/reconstruct_daily_rainfall_event.R

Description

Extracts the rainfall events that happened before a landslide, based on a predefined length , n, that can be dry days and still be part of a rainfall event. Input usually is the result of the function ex_rainfall for one slide with a unique 'PIFF_ID'.

Usage

1
reconstruct_daily_rainfall_events(d, n = 1, daily_thresh = 0.2, quiet = TRUE)

Arguments

d

A dataframe with the extracted rainfall for one point or polygon. This dataframe needs to have a column called precip

n

The interval (in days) a dry period can still be part of a rainfall event

daily_thresh

the minimum daily rainfall to be considered a day of rain

quiet

Show print messages or not

Value

The same dataframe as inputted, just with the column event appended that shows the number of rainfall event before the slide happened


RobinKohrs/rainfallR documentation built on Oct. 3, 2021, 1:42 a.m.