Draw growth deviations for every replicate and rebuild growth
Source:R/sim_biologicals.R
draw_sim_growth_devs.RdEach varying growth parameter's series and the semi-parametric surface are
drawn by draw_growth_pe_surface from the form the estimation
model penalizes them under, at the fitted process error parameters: a
parameter's sd in the time-varying half of growth_pe_pars and the
surface's in the semi-parametric half, as Get_PE_loglik reads them.
The fit's maps decide what is drawn: a cell the map fixes stays at zero, a
shared level takes one draw, and years past the fit are active. The first
n_cond_yrs years of every replicate keep the fit's own deviations, or
the replicate's own draw of them under a joint self test, and the years after
them are drawn given those at that replicate's process error. Growth is
then rebuilt through derive_sim_growth; under cohort growth that
builds only the years before the propagation starts, and the annual cycle
advances the rest from each replicate's own numbers at age.