Calibrate one spin-up carbon-input value against an observed SOC stock
f.optim.param.c.input.RdReads the already-written ./data_out/<input.sim.run>/<input.case>/ <input.case>_<my.id>/data_in/RothC_input.dat and calibrates a single
scalar – the spin-up year's month-8 C_inp – so that
ROTH_C_SPIN_UP()'s equilibrium total SOC matches c.obs, via
optim(method = "L-BFGS-B") minimizing the squared difference. The
rest of that synthetic spin-up year (PC, FYM, DPM_RPM = 1.44) is
held fixed – a finer-grained, data-driven alternative to the
op.spin.out presets of run.socmo().
Arguments
- input.sim.run, input.case
Same simulation run/case identifiers used for the
run.socmo()call that produced the.datfile.- my.id
Treatment ID whose container/
.datfile to calibrate against.- c.obs
Observed total SOC (t C/ha) to calibrate towards.
Value
A list with optim (the raw optim() result: $par is the
calibrated C_inp, $value the squared residual) and c.input
(a ready-to-use list suitable for run.socmo(op.adjust.cinput = ...)).