Skip to contents

Read old ipm and put them in the new species class format.

Usage

old_ipm2species(
  species,
  climatic = 1,
  path = here(),
  replicat = 42,
  harvest = def_harv,
  disturb = def_disturb,
  init_pop = def_init,
  delay = 0
)

Arguments

species

Name of the species to load. Single char.

climatic

Numeric that coded old climatic state. int.

path

Place to load the previous IPM file. Single Char.

replicat

Numeric for the model to select. By default, the 42th.

harvest

Function to impact the population with harvest rule. Argument must be pop. Should return a population state as it's take it in input, with less population than before. Unless you want zombie trees.

disturb

Function to impact the population with possibles disturbances. Extra care is needed to give this function all needed parameters/ Default is def_disturb.

init_pop

Function to initiate the population at simulation start. Arguments must be mesh and SurfEch. Using the arguments is not mandatory, it's most usefull when creating random population.

delay

Number of year delay between the recruitment of an individual and it's inclusion in the IPM. This will enlarge the IPM and add sub diagonal values of 1. See delay.