Description Usage Arguments Details Author(s) Examples
View source: R/rnf_unit_convert.R
The function to transform runoff variables from/to cubic meters per second to water level in mm per unit time on a square meter.
1 | rnf_unit_convert(x, from = "vol", to.time.unit = "day", area)
|
x |
Vector numeric. Runoff variable |
from |
Character. String to convert 'vol' or 'lev'. Default 'vol' |
to.time.unit |
Character. String containing the time units of conversion. See more in details |
area |
numeric, catchment area in suare meters. |
Runoff unit conversion
Runoff units can be compared with precipitation by transforming it scale into comparable scales. Usually rainfall is measured in level terms meaning the rise of water level in a theoretical volume of base equal to one square meter.
'from' argument require '"vol"' meaning "volume per second" (m3/s) or '"lev"' meaning "level on a time over area" (mm day).
'to.time.unit' is a time fraction string i.e. "day", "3 hour", "10 minutes", etc.
Gabriel Gaona
1 2 3 4 5 6 7 8 9 10 | # In a catchment area of 1.4 km2 a measure of water outcomes by runoff is
# 0.023 'm3/s'
area <- 1.4 * 1000000 #convert km2 to m2
r_vol <- 0.023
# let's convert to "mm dia"
r_lev <- rnf_unit_convert(r_vol, from = "vol",
to.time.unit = "1 day", area = area)
# Reverse process
r_lev <- rnf_unit_convert(r_lev, from = "lev",
to.time.unit = "1 day", area = area)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.