
Set outflow data for a DYRESM-CAEDYM simulation directory
Source:R/set_dy_cd_outflows.R
set_dy_cd_outflows.RdThin, aeme-free wrapper around the internal outflow writer used by
build_aeme(). Writes <lakename>.wdr into path_dy and, so the outlet
set stays consistent, rebuilds the outlet block of <lakename>.stg with
the supplied heights.
Arguments
- path_dy
filepath; the
dy_cdmodel directory (containing the<lakename>.stgfile).- outf
named list of data.frames, one per outflow, each with a
Datecolumn and aHYD_flowcolumn – seeadd_outflows()for the expected schema.- heights_wdr
named numeric vector; outlet elevation (m ASL) for each name in
outf.- outf_factor
numeric; scaling factor applied to all outflow flow rates. Default is
1.- update_stg
logical; also rebuild the outlet block of
<lakename>.stgwithheights_wdr. DefaultTRUE.