detect_flood_events

flood_divide

detect_groups(df, inds, gap_max = 5, extend = ddays(5))

detect_flood_events(
  date,
  Q,
  Q_min = 2,
  Q_peak = 10,
  gap_max = 5,
  extend = ddays(5)
)

flood_divide(df, ...)

merge_flood(df, info_flood, format = "%Y.%m")

Arguments

df

A data.table with date and Q columns

gap_max

Default 5 days.

  • gaps (in days) <= gap_max is regarded as the same event.

  • gaps > gap_max, it will be regarded as two events.

extend

Default ddays(5). Extend nday in the left and right of a event

Q_min

minimum discharge to detect flood events

Q_peak

peak discharge to detect flood events

...

parameters passed to detect_flood_events()