rnf_unit_convert: Runoff conversion Volumen per time from/to level

Description Usage Arguments Details Author(s) Examples

View source: R/rnf_unit_convert.R

Description

The function to transform runoff variables from/to cubic meters per second to water level in mm per unit time on a square meter.

Usage

1
rnf_unit_convert(x, from = "vol", to.time.unit = "day", area)

Arguments

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.

Details

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.

Author(s)

Gabriel Gaona

Examples

 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)

gavg712/hydroutils documentation built on Dec. 27, 2019, 2:22 a.m.