convert_varname_swat2eurocordex: Convert SWAT2012 variable name to EURO-CORDEX variable name

Description Usage Arguments Details Value Examples

Description

Convert SWAT2012 variable name to EURO-CORDEX variable name

Usage

1
convert_varname_swat2eurocordex(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

Details

Converts SWAT2012 variable name to EURO-CORDEX variable name.

NOTE: It might return one or MORE values per input value. Please have a look at the examples for details.

Value

character or character-array: EURO-CORDEX variable names

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 # PLEASE NOT THE LAST EXAMPLE!

 var <- 'pcp'
 var_ec <- convert_varname_swat2eurocordex(var)
 print(var_ec)
 # [1] "pr"
 
 var <- 'slr'
 var_ec <- convert_varname_swat2eurocordex(var)
 print(var_ec)
 # [1] "rsds"
 
 var <- 'tmp'
 var_ec <- convert_varname_swat2eurocordex(var)
 print(var_ec)
 # [1] "tasmin" "tasmax"
 
 

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