run_model: Run the model.

Description Usage Arguments Value Examples

View source: R/run_model.R

Description

Model solving function using ode.2D from the 'deSolve' package.

Usage

1
2
run_model(pgr_rb = 0.005, pgr_sm = 0.2, rnd = FALSE, method = "euler",
  TS = 0.25)

Arguments

pgr_rb

potential growth rate of reed beds

pgr_sm

potential growth rate of salt marsh

rnd

create random initial state variables map. It is calculated based on a script adapted from Murray Efford (University of Auckland, New Zealand) and Santiago Saura (Universidad Politecnica de Madrid, Spain). This option requires that the igraph package is available.

method

integration method: "lsodes", "euler", "rk4", "ode23", "ode45", "adams", "iteration"

TS

time step

Value

the function outputs a matrix named "out" which contains the model simulated values for every pixel, time step and state variable.

Examples

1
## Not run run_model()

spdynmod documentation built on Feb. 5, 2022, 1:08 a.m.