dfi_n | R Documentation |
Common baseflow separation separates quick- and baseflow with a
block length of n = 5 with dfi_n(q_obs, n = 5)
. To generate multiple hydrograph separations
for the DFI index n
vary between 1 and nmax
(e.g. 60, 90 or 120 days). To do this the
function could be used with a n
as a vector instead of a single integer (e.g. dfi_n(q_obs, n = 1:60)
)
Note, separation with n=0
is not possible. The DFI of n=1
is not 1 as due to the algorithm some
streamflow peaks are separated from delayed flow.
dfi_n(q, n = 5, desc = TRUE, add_zero = TRUE)
q |
vector with streamflow series |
n |
block length |
desc |
logical, if |
add_zero |
logical, default is |
A data.frame with two columns: n
for block length and dfi
with the DFI(n)
values.
If n
is a single integer the function returns a single integer (i.e. one DFI(n)
value).
# same as BFI calculation bfi <- dfi_n(q_data$q_obs, n = 5) bfi # 60 different separations based on various block length n dfi_n(q_data$q_obs, n = 1:60) # only specific block lengths are used dfi_n(q_data$q_obs, n = c(1:5,10,30,60,90), add_zero = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.