Skip to contents

Write command file for launching samsara2 software

Usage

write_samsara_cmd(
  marking_groups,
  thinning_time,
  evolution_time,
  create_periphery = FALSE,
  create_virtual_saplings = FALSE,
  range_dbh = c(as.numeric(getOption("mart_recdbh")), 92.5),
  inv_year = as.numeric(getOption("mart_year")),
  inv_mindbh = as.numeric(getOption("mart_recdbh")),
  simulation_year_step = 1,
  silviculture = c("auto", "expert"),
  verbose = FALSE
)

Arguments

marking_groups

list of marking_groups to build the command file for. Under development so it use all marking_groups at this time

thinning_time

Time between management actions

evolution_time

Total duration of the simulation

create_periphery

Creation of the periphery of the plot. TRUE by default. Must be TRUE for the first simulation, and FALSE later to speed up simulations

create_virtual_saplings

Creation of the saplings of the plot. TRUE by default. Must be TRUE for the first simulation, and FALSE later to speed up simulations

range_dbh

range of dbh for tree diameter classes.

inv_year

year of the inventory. Used to define the starting year of simulations. Value retrievedfrom inventory file.

inv_mindbh

inventory minimum dbh. Value retrieved from inventory file.

simulation_year_step

Simulation year step, value by default is 1.

silviculture

Choice between "auto" and "expert", for building data/Silviculture file.

verbose

Print messages or not.