
Set inflow data for a DYRESM-CAEDYM simulation directory
Source:R/set_dy_cd_inflows.R
set_dy_cd_inflows.RdThin, aeme-free wrapper around the internal inflow writer used by
build_aeme(). Writes <lakename>.inf into path_dy and, so the
inflow set stays consistent, rebuilds the inflow block of
<lakename>.stg (see .rewrite_dy_stg() note about inflow geometry
defaults).
Arguments
- path_dy
filepath; the
dy_cdmodel directory (containing the<lakename>.stgfile).- list_inf
named list of data.frames, one per inflow. Each must have a
Datecolumn plus flow/temperature/salt columns (e.g.HYD_flow,HYD_temp,CHM_salt) – seeadd_inflow()for the expected schema. Column names are translated to DYRESM-CAEDYM's own viarename_modelvars().- inf_factor
numeric; scaling factor applied to all inflow flow rates. Default is
1.- update_stg
logical; also rebuild the inflow block of
<lakename>.stgto matchnames(list_inf). DefaultTRUE.
Examples
if (FALSE) { # \dontrun{
set_dy_cd_inflows(path_dy, list_inf = list(FWMT = inflow_df))
} # }