
Get one or more parameter values from a DYRESM-CAEDYM configuration
Source:R/set_dy_cd_param.R
get_dy_cd_param.RdCompanion to set_dy_cd_param() for reading current values without an
aeme object.
Usage
get_dy_cd_param(
path_dy,
name,
cfg_file = find_dy_cd_cfg(path_dy),
par_file = file.path(path_dy, "dyresm3p1.par")
)Arguments
- path_dy
filepath; directory containing the DYRESM-CAEDYM configuration (the
dy_cdmodel directory).- name
character vector; name(s) of the parameter(s) to read – the same friendly names
set_dy_cd_param()accepts.- cfg_file
filepath; the
<lakename>.cfgfile to edit. Defaults to the one found inpath_dyviafind_dy_cd_cfg().- par_file
filepath; the
dyresm3p1.parfile to edit. Defaults todyresm3p1.parinpath_dy.
Value
the parameter value if name has length 1, otherwise a named
list of values. Numeric-looking values are returned as numbers, others
(e.g. start_date, run_caedym's .TRUE./.FALSE.) as strings.
Examples
if (FALSE) { # \dontrun{
get_dy_cd_param(path_dy, "Kw")
get_dy_cd_param(path_dy, c("Kw", "max_layer_thickness", "eta_S"))
} # }