convolution | R Documentation |
Simulate the discharge by a convolution between the unit hydrograph and the net rainfall.
convolution(Rn, ...) ## Default S3 method: convolution(Rn, uh, continuous = FALSE, ...) ## S3 method for class 'units' convolution(Rn, uh, ...) ## S3 method for class 'transfR' convolution( Rn, Rcol = "RnSim", Qcol = "Qsim", save_donor = FALSE, verbose = TRUE, ... )
Rn |
net rainfall vector or an object of class |
... |
further arguments passed to or from other methods |
uh |
unit hydrograph vector |
continuous |
boolean indicating if, when one time step might be influenced by past or future rainfall (according to the time span of the unit hydrograph), no simulated value is provided |
Rcol |
name of the space-time attribute for the discharge simulation in the |
Qcol |
name of the space-time attribute for the net rainfall in the |
save_donor |
boolean indicating if additional discharge simulations should be computed using the
net rainfall of each individual donor catchment instead of just the weighted average net rainfall. This
requires that |
verbose |
boolean indicating if information messages should be written to the console |
An object of the same class of Rn
. If Rn
is a transfR object,
the same transfR object incremented by the new computed attributes.
data(Oudon) icatch <- 1 uc <- velocity(hl = Oudon$hl[[icatch]]) uh <- uh(hl = Oudon$hl[[icatch]], uc = uc, deltat = units::set_units(1,"h"))$prob Rn <- units::set_units(c(1,5,2), "mm/h") Qsim <- convolution(Rn = Rn, uh = uh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.