Run the RothC spin-up phase to equilibrium
ROTH_C_SPIN_UP.RdRepeatedly cycles the first year of monthly driving data in a RothC
.dat input file until the total carbon pool (TOC) stabilises (or the
maximum number of cycles is reached), to obtain equilibrium pool sizes
used to initialise ROTH_C()'s main run.
Usage
ROTH_C_SPIN_UP(
filename,
my.sep = "",
timeFact = 12,
op.spin.up.sensitivity = 1e-06,
op.split.oa = "classic",
op.return = "list.end.values",
op.log.screen = FALSE,
op.adjust.cinput = NULL
)Arguments
- filename
Path to a RothC input file in the native
.datformat (header row ofclay/depth/iom/nstepsplus monthly driving data) – seeRothC_input.datfor the reference layout.- my.sep
Field separator passed to
read.csv()when readingfilename(default'', i.e. whitespace).- timeFact
Number of months in one spin-up cycle (default
12, i.e. the first year of the input file is replayed each cycle).- op.spin.up.sensitivity
Convergence threshold on the year-on-year change in TOC; spin-up stops once below this value.
- op.split.oa
Organic amendment input format:
"classic"(singleOA_inpcolumn) or any other value to read the extendedOA_kh/OA_rdpmcolumns.- op.return
What to return:
"list.end.values"(default) for the pool sizes and model state at convergence, used to feedROTH_C();"list.all.values"to additionally keep every intermediate cycle's state.- op.log.screen
Whether to print progress to the console.
- op.adjust.cinput
Optional named list overriding the first year's
PC/FYM/C_inp/DPM_RPMdriving data – used when calibrating a carbon-input parameter (seef.optim.param.c.input()inR/socmo-optim-params.R).
Value
A list of the model environment at spin-up end, including the
pool sizes (DPM, RPM, Bio, Hum, IOM), SOC_spinup, and the
soil parameters read from filename (clay, depth, nsteps,
...). Intended to be passed as op.spin.up.list to ROTH_C().
References
Vendored/adapted from the official RothC_R implementation
(Prout, Milne, Coleman) – see RothC_R_LICENSE.txt.