powered by
ConvertDischarge converts volumetric discharge to specific discharge (unit area discharge) and vice versa.
ConvertDischarge
ConvertDischarge(q, area, from = "m3s", to = "mmd")
ConvertDischarge returns a numeric object of the same type as provided in argument q.
q
An object of type numeric, containing volumetric or specific discharge values, typically HYPE variables COUT or ROUT.
numeric
An object of type numeric, containing a catchment area in \(m^2\).
Character string keyword, giving the current unit of q. Either a specific discharge, one of:
"mmy" (\(mm y^{-1}\))
"mmy"
"mmd" (\(mm d^{-1}\))
"mmd"
"mmh" (\(mm h^{-1}\)),
"mmh"
or a volumetric discharge, one of:
"m3s" (\(m^3 s^{-1}\))
"m3s"
"ls" (\(l s^{-1}\)).
"ls"
Character string keyword, see from. Conversion will not work between units within volumetric or specific discharge groups.
from
ConvertDischarge is a simple conversion function, most likely to be used in combination with apply or related functions.
apply
ConvertDischarge(6, 400000000) ConvertDischarge(c(1.1, 1.2, 1.9, 2.8, 2, 1.5, 1.3, 1.2, 1.15, 1.1), from = "mmd", to = "ls", area = 1.2e6)
Run the code above in your browser using DataLab