Skip to contents

Helper function: get units list from meta general

Usage

get_units_list(meta_general)

Arguments

meta_general

as retrieved by read_meta_general

Value

list with elements unit_L, unit_T and unit_M

Examples

path_tlevel <- system.file("extdata/model/test/T_LEVEL.out", package = "kwb.hydrus1d")
content <- readLines(path_tlevel)
content_general <- content[3:5]
cat(content_general)
#>  Flextreat Hydraulic Model                                                 Date:  30. 6.2022    Time:  12:49:10  Units: L = cm   , T = days , M = mmol 
meta_general <- read_meta_general(content_general)
get_units_list(meta_general)
#> $L
#> [1] "cm"
#> 
#> $T
#> [1] "days"
#> 
#> $M
#> [1] "mmol"
#>