
Set outflow data for a GOTM-WET simulation directory
Source:R/set_gotm_outflows.R
set_gotm_outflows.RdThin, aeme-free wrapper around the internal outflow writer used by
build_aeme(). Writes inputs/outf_<name>.dat per outflow into
path_gotm, and updates the streams block of gotm.yaml to point at
them. Existing stream entries not named in outf are left untouched.
Usage
set_gotm_outflows(
path_gotm,
outf,
outf_factor = 1,
yaml_file = file.path(path_gotm, "gotm.yaml")
)Arguments
- path_gotm
filepath; to GOTM-WET directory (containing
gotm.yamland aninputs/subdirectory)- outf
named list of data.frames, one per outflow, each with a
Datecolumn and aHYD_flowcolumn – seeadd_outflows()for the expected schema.- outf_factor
numeric; scaling factor applied to all outflow flow rates. Default is
1.- yaml_file
filepath; path to the
gotm.yamlfile to update. Defaults togotm.yamlinpath_gotm.
Examples
if (FALSE) { # \dontrun{
set_gotm_outflows(path_gotm, outf = list(outlet_1 = outflow_df))
} # }