get_swat_unit: Get unit to one SWAT2012 variable name

Description Usage Arguments Value Examples

Description

Get the unit of one SWAT2012 meteorological input parameter. Only five parameters are currently supported: wnd, hmd, slr, pcp, and tmp.

Usage

1
get_swat_unit(varname, stop_on_error = TRUE)

Arguments

varname

character or character-array: one or more SWAT2012 variable names

stop_on_error

boolean: stop, when one or more entries of varname are not convertible

Value

character or character-array: SWAT2012 units

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 var <- 'pcp'
 unit <- get_swat_unit(var)
 print(unit)
 # mm/d

 var <- 'slr'
 unit <- get_swat_unit(var)
 print(unit)
 # MJ/m2/d
 
 

neumannd/eurocordex2swatTools documentation built on May 14, 2019, 2:17 p.m.