issues
search
DrylandEcology
/
SOILWAT2
An ecosystem water balance simulation model
GNU General Public License v3.0
5
stars
2
forks
source link
Spinup before simulation loop
#379
Closed
dschlaep
closed
1 month ago
dschlaep
commented
8 months ago
Implement spin-up capabilities
before the simulation loops over years and days
run a “spin-up” (without producing “outputs”) and pass resulting states (values of soil moisture, soil temperature, etc.) into the simulation loop
Inputs to the “spin-up” consist of a subset of inputs for the simulation; the subset is determined by new user inputs
spin-up scope: use first n year(s) of simulation inputs
spin-up duration: sample m year(s) out of the first n year(s)
spin-up mode
randomly sample m out of the first n years
“repeated random resample”
use a sequence of m years out of the first n years, i.e., 1:m if m <= n else {1:n, 1:n, …}_m
“repeated sequence subset”
rng seed (0 means use current time, i.e., no replicable)
defaults (backwards compatible, i.e., no spin-up): scope n = 1, duration m = 0, mode = “repeated random resample”, seed = 11
Implement spin-up capabilities