All Disturbance Layers
disturbance_all.RdAll Disturbance Layers
Usage
disturbance_all(
spatial_grid,
dhw_effects,
cyc_effects,
other_effects,
matern_projection,
config_sp
)Arguments
- spatial_grid
An
sfc_POINTobject representing the full spatial grid.- dhw_effects
Matrix of DHW disturbance effects.
- cyc_effects
Matrix of cyclone disturbance effects.
- other_effects
Matrix of other disturbance effects.
- config_sp
A list with:
years– vector of years to simulateseed– random seeddhw_weight– relative influence of DHWcyc_weight– relative influence of cyclonesother_weight– relative influence of other disturbanceshcc_growth– annual growth rate of hard coralsc_growth– annual growth rate of soft coral
- spde
A list containing the SPDE mesh, SPDE object, precision matrix
Q, and projection matrixA.
Value
A list with:
disturb_effects– combined disturbance matrixall_effects_df– long-format data frame with cumulative effectsall_effects– wide-format matrix of cumulative HCC effectsdisturb_pts_sample– projected effects onto the spatial griddisturb_pts_effects– long-format data frame for plotting