day2IDF: Calculate approximate intensity-duration-frequency (IDF)...

View source: R/idf.R

day2IDFR Documentation

Calculate approximate intensity-duration-frequency (IDF) curves from daily data through a crude downscaling in timescales. Calculate the residual of a 'ds' object, i.e., the original data minus the fitted values.

Description

Calculate approximate intensity-duration-frequency (IDF) curves from daily data through a crude downscaling in timescales. Calculate the residual of a 'ds' object, i.e., the original data minus the fitted values.

Usage

day2IDF(
  x,
  L = c(1, 2, 3, 6, 12, 24),
  tau = 10,
  zeta = NULL,
  n0 = 365.25,
  alpha = c(1.256, 0.064),
  verbose = FALSE
)

Arguments

x

a daily station object for rainfall

L

timescale in hours

tau

return interval in years

n0

number of observations per year

alpha

best fit constant and slope for scaling factor between exponential distribution and empirical distribution taken from https://doi.org/10.1088/1748-9326/ab2bb2

verbose

a boolean; if TRUE print information about progress

exponent

for the power-law dependency between return values and timescales

cols

provies the colour pallette: default is ' rev(heat.colors)'.

Examples

data(bjornholt)
z <- IDF(bjornholt)
View(z)


metno/esd documentation built on Feb. 25, 2025, 6:44 p.m.