<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Softwares | Sylvain Schmitt</title><link>https://sylvainschmitt.netlify.app/software/</link><atom:link href="https://sylvainschmitt.netlify.app/software/index.xml" rel="self" type="application/rss+xml"/><description>Softwares</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>© 2017 Sylvain Schmitt</copyright><lastBuildDate>Thu, 09 Mar 2023 00:00:00 +0000</lastBuildDate><image><url>https://sylvainschmitt.netlify.app/media/icon_hua2ec155b4296a9c9791d015323e16eb5_11927_512x512_fill_lanczos_center_3.png</url><title>Softwares</title><link>https://sylvainschmitt.netlify.app/software/</link></image><item><title>LoggingLab</title><link>https://sylvainschmitt.netlify.app/software/logginglab/</link><pubDate>Thu, 09 Mar 2023 00:00:00 +0000</pubDate><guid>https://sylvainschmitt.netlify.app/software/logginglab/</guid><description>&lt;p>LoggingLab: A new individual-based and spatially-explicit logging simulator.&lt;/p>
&lt;p>Article in preparation.&lt;/p></description></item><item><title>rcontroll</title><link>https://sylvainschmitt.netlify.app/software/rcontroll/</link><pubDate>Fri, 28 Feb 2020 00:00:00 +0000</pubDate><guid>https://sylvainschmitt.netlify.app/software/rcontroll/</guid><description>&lt;p>&lt;em>rcontroll&lt;/em> integrates the individual-based and spatially-explicit &lt;em>TROLL&lt;/em> model to simulate forest ecosystem and species dynamics forward in time.
&lt;em>rcontroll&lt;/em> provides user-friendly functions to set up and analyse simulations with varying community compositions, ecological parameters, and climate conditions.&lt;/p>
&lt;h2 id="description">Description&lt;/h2>
&lt;p>&lt;code>TROLL&lt;/code> is coded in C++ and it typically simulates hundreds of thousands of individuals over hundreds of years.
The &lt;code>rcontroll&lt;/code> R package is a wrapper of &lt;code>TROLL&lt;/code>.
&lt;code>rcontroll&lt;/code> includes functions that generate inputs for simulations and run simulations.
Finally, it is possible to analyse the &lt;code>TROLL&lt;/code> outputs through tables, figures,
and maps taking advantage of other R visualisation packages.
&lt;code>rcontroll&lt;/code> also offers the possibility to generate a virtual LIDAR point cloud
that corresponds to a snapshot of the simulated forest.&lt;/p>
&lt;h3 id="construction-and-manipulation-of-input-files">Construction and manipulation of input files&lt;/h3>
&lt;p>As stated above, three types of input data are needed for a typical &lt;code>TROLL&lt;/code> simulation:
(i) climate data, (ii) plant functional traits, (iii) global model parameters.
Pre-simulation functions include global parameters definition (&lt;code>generate_parameters&lt;/code> function) and climate data generation (&lt;code>generate_climate&lt;/code> function).
&lt;code>rcontroll&lt;/code> also includes default data for species and climate inputs for a typical French Guiana rainforest site.
The purpose of the &lt;code>generate_climate&lt;/code> function with the help of the corresponding vignette is to create &lt;code>TROLL&lt;/code> climate inputs from ERA5-Land (Muñoz-Sabater et al. 2021),
a global climatic reanalysis dataset that is freely available.
The ERA5-Land climate reanalysis is available at 9 km spatial resolution and hourly temporal resolution since 1950,
and daily or monthly means are available and their uncertainties reported.
Therefore, &lt;code>rcontroll&lt;/code> users only need to input the species-specific trait data to run &lt;code>TROLL&lt;/code> simulations, irrespective of the site.
&lt;code>TROLL&lt;/code> was originally developed for tropical and subtropical forests, so certain assumptions must be critically examined when applying it outside the tropics.
The input files can be used to start a &lt;code>TROLL&lt;/code> simulation run within the &lt;code>rcontroll&lt;/code> environment (see below),
or saved so that the &lt;code>TROLL&lt;/code> simulation can be started as a command line tool.&lt;/p>
&lt;h3 id="simulations">Simulations&lt;/h3>
&lt;p>The default option is to run a &lt;code>TROLL&lt;/code> simulation using the &lt;code>troll&lt;/code> function of the rcontroll package,
which currently calls version 3.1.7 of &lt;code>TROLL&lt;/code> using the Rcpp package (Eddelbuettel &amp;amp; François 2011).
The output is stored in a &lt;code>trollsim&lt;/code> R class.
For multiple runs, users can rely on the &lt;code>stack&lt;/code> function, and the output is stored in the &lt;code>trollstack&lt;/code> class.
Both &lt;code>trollsim&lt;/code> and &lt;code>trollstack&lt;/code> values can be accessed using object attributes in the form of simple R objects (with &lt;code>@&lt;/code> in R).
They consist of eight simulation attributes: (1) name, (2) path to saved files, (3) parameters, (4) inputs, (5) log,
(6) initial and final state, (7) ecosystem output metrics, and (8) species output metrics.
The initial and final states are represented by a table with the spatial position,
size and other relevant traits of all trees at the start and end of the simulation.
The ecosystem and species metrics are summaries of ecosystem processes and states,
such as net primary production and aboveground biomass, and they are documented at species level and aggregated over the entire stand. Simulations can be saved using a user-defined path when run and later loaded as a simple simulation (&lt;code>load_output&lt;/code> function)
or a stack of simulations (&lt;code>load_stack&lt;/code> function).&lt;/p>
&lt;h3 id="simulated-airborne-lidar-scanning-option">Simulated airborne lidar scanning option&lt;/h3>
&lt;p>&lt;code>TROLL&lt;/code> also has the capacity of generating point clouds from virtual aerial lidar scannings of simulated forest scenes.
Within each cubic metre voxel of the simulated stand, points are generated probabilistically,
with the probability depending both on the amount of light reaching the particular voxel
and the amount of leaf matter intercepting light within the voxel.
Extinction and interception of light are based on the Beer-Lambert law,
but an effective extinction factor is used to account for differences between the near-infrared and visible light.
The definition of the lidar parameters (&lt;code>generate_lidar&lt;/code> function) is optional but allows the user to add a virtual aerial lidar scan for a time step of the &lt;code>TROLL&lt;/code> simulation.
When this option is enabled, the cloud of points from simulated aerial lidar scans are stored as LAS using the R package &lt;code>lidR&lt;/code> (Roussel et al., 2020) as a ninth attribute of the &lt;code>trollsim&lt;/code> and &lt;code>trollstack&lt;/code> objects.&lt;/p>
&lt;h3 id="manipulation-of-simulation-outputs">Manipulation of simulation outputs&lt;/h3>
&lt;p>&lt;code>rcontroll&lt;/code> includes functions to manipulate simulation outputs.
Simulation outputs can be retrieved directly from the &lt;code>trollsim&lt;/code> or &lt;code>trollstack&lt;/code>objects
and summarised or plotted in the R environment with the &lt;code>print&lt;/code>, &lt;code>summary&lt;/code> and &lt;code>autoplot&lt;/code> functions.
The &lt;code>get_chm&lt;/code> function allows users to retrieve canopy height models from aerial lidar point clouds (Fig. 2).
In addition, a &lt;code>rcontroll&lt;/code> function is available to visualise TROLL simulations as an animated figure (&lt;code>autogif&lt;/code> function, Fig. 1).&lt;/p>
&lt;p>&lt;img src="https://raw.githubusercontent.com/sylvainschmitt/rcontroll/main/inst/figures/troll.gif" alt="Figure 1: Output from a TROLL simulation using the autogif function in the rcontroll package. The image shows a vertical cut in the forest structure along the X-axis (in metre) with individual tree height (metre) on the Y-axis. The tree colours indicate the identity of the species and can be changed using the ggplot2 grammar. The figure shows the forest structure dynamically over 200 years of a successional trajectory starting from bare ground.">&lt;/p>
&lt;p>&lt;img src="https://raw.githubusercontent.com/sylvainschmitt/rcontroll/main/inst/figures/lidar.png" alt="Figure 2: Cloud of points obtained through a virtual airborne lidar scan of a forest scene simulated with TROLL. The horizontal axes represent the X-axis and Y-axis (in metres) and the vertical axis represents height (in metres). The thermal colour scale indicates the height of the points in the cloud, from 0 m in dark blue to 40 m in red.">&lt;/p></description></item><item><title>SSDM</title><link>https://sylvainschmitt.netlify.app/software/ssdm/</link><pubDate>Fri, 28 Feb 2020 00:00:00 +0000</pubDate><guid>https://sylvainschmitt.netlify.app/software/ssdm/</guid><description>&lt;p>Allows to map species richness and endemism based on stackedspecies distribution models (SSDM). Individuals SDMs can be created using asingle or multiple algorithms (ensemble SDMs). For each species, an SDM canyield a habitat suitability map, a binary map, a between-algorithm variancemap, and can assess variable importance, algorithm accuracy, and between-algorithm correlation. Methods to stack individual SDMs include summingindividual probabilities and thresholding then summing. Thresholding can bebased on a specific evaluation metric or by drawing repeatedly from a Bernoullidistribution. The SSDM package also provides a user-friendly interface.&lt;/p>
&lt;p>&lt;img src="https://raw.githubusercontent.com/sylvainschmitt/SSDM/master/examples/SSDM.gif" alt="">&lt;/p></description></item></channel></rss>