get_eurocordex_unit: Get unit to one EURO-CORDEX variable name

Description Usage Arguments Value Examples

Description

Get the unit of one EURO-CORDEX meteorological input parameter (should be equal to CF Conventions units). Only five parameters are currently supported: sfcWind, hurs, rsds, pr, tasmax, tasmin, and tas.

Usage

1
get_eurocordex_unit(varname, stop_on_error = TRUE)

Arguments

varname

character or character-array: one or more EURO-CORDEX variable names

stop_on_error

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

Value

character or character-array: EURO-CORDEX units

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 var <- 'hurs'
 unit <- get_eurocordex_unit(var)
 print(unit)
 # %
 
 var <- 'rsds'
 unit <- get_eurocordex_unit(var)
 print(unit)
 # W m-2
 
 

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