Thin, aeme-free wrapper for editing the initial temperature/salinity
profile (<lakename>.pro) and, for a CAEDYM (BGC) run, the water-quality
initial values (<lakename>.int) of a DYRESM-CAEDYM model directory in
place. Intended for a DYRESM-CAEDYM-only workflow where a user just wants
to tweak initial conditions, run the model, and load the output.
Usage
set_dy_cd_init(
path_dy,
temp = NULL,
salt = NULL,
wq_init = NULL,
pro_file = NULL,
int_file = NULL
)Arguments
- path_dy
filepath; directory containing the DYRESM-CAEDYM configuration (the
dy_cdmodel directory).- temp
numeric; new initial water temperature profile. Recycled to the number of rows in
<lakename>.pro.NULL(default) leaves it unchanged.- salt
numeric; new initial salinity profile, same recycling rule as
temp.NULL(default) leaves it unchanged.- wq_init
named list; new water-column initial values for CAEDYM water quality variables, keyed by
var_aemename, e.g.list(CHM_oxy = 300, NIT_amm = 0.5). Names are translated to CAEDYM's own variable names viarename_modelvars(). Each value is a single number (CAEDYM.intwater-column initials are not depth-resolved).NULL(default) leaves water quality initial values unchanged. Requires a<lakename>.intfile (a CAEDYM configuration).- pro_file, int_file
filepath; the
.pro/.intfiles to edit. Default to the files found inpath_dyviafind_dy_cd_cfg()'s prefix.
Details
Existing profile depths in <lakename>.pro are left unchanged –
temp/salt values are recycled (via rep_len()) across however many
rows are already defined. wq_init overwrites the water-column initial
value for the named CAEDYM variables in <lakename>.int, leaving their
sediment initial values (and every other variable) untouched.
