Simulate Tree Light Transmission Using Ray-Tracing

Provides tools to simulate light transmission in forest stands using three-dimensional ray-tracing. The package allows users to build virtual stands from tree inventories and to estimate (1) light intercepted by individual trees, (2) light reaching the forest floor, and (3) light at virtual sensors. The package is designed for ecological and forestry applications, including the analysis of light competition, tree growth, and forest regeneration. The implementation builds on the individual-based ray-tracing model SamsaraLight developed by Courbaud et al. (2003) .


SamsaRaLight

SamsaRaLight is an R package for simulating light transmission in forest stands based on the ray-tracing model SamsaraLight (Courbaud et al. 2003).

📊 It allows users to estimate:

  • Light intercepted by individual trees
  • Light reaching the forest floor
  • Light at virtual ground sensors

✨ With many features:

  • Estimation of direct and diffuse radiation
  • Flexible crown geometry (symmetric and asymmetric)
  • Multiple transmission models
  • Light competition indicators
  • Virtual light sensors
  • 2D visualization tools
  • Parallel simulations

🌐 Model documentation and tutorials are available here: https://natheob.github.io/SamsaRaLight/

Installation

You can install the development version of SamsaRaLight from GitHub with:

install.packages("pak")
pak::pkg_install("NatheoB/SamsaRaLight")

Citation

If you use the SamsaraLight in your research, please cite :

  • The original publication of the SamsaraLight model: Courbaud, B., de Coligny, F. & Cordonnier, T. Simulating radiation distribution in a heterogeneous Norway spruce forest on a slope. Agricultural and Forest Meteorology 116, 1–18 (2003). Courbaud et al. 2003.
  • This package stored on CRAN using r citation("SamsaRaLight"): Beauchamp et al. 2026.

Contributing

Contributions, bug reports, and feature requests are welcome.

Please open an issue or pull request on the github project.

License

This package is released under the GPL-3 License. See LICENSE for details.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SamsaRaLight")

1.1.0 by Natheo Beauchamp, 9 hours ago


https://natheob.github.io/SamsaRaLight/


Report a bug at https://github.com/natheob/SamsaRaLight/issues/


Browse source code at https://github.com/cran/SamsaRaLight


Authors: Natheo Beauchamp [aut, cre] (R package developer , ORCID: , Gauthier Ligot [aut] (Java Capsis developer and algorithm improvement , ORCID: , Francois de Coligny [aut] (Java Capsis developer , ORCID: , Maxime Jaunatre [aut] (R package support developer , ORCID: , Benoit Courbaud [aut, cph] (Algorithm and theory creator , ORCID:


Documentation:   PDF Manual  


GPL (>= 3) license


Imports concaveman, data.table, dplyr, ggforce, ggnewscale, ggplot2, grid, httr, patchwork, Rcpp, RhpcBLASctl, scales, sf, sfheaders, tidyr

Suggests cowplot, knitr, purrr, rmarkdown, testthat

Linking to Rcpp


See at CRAN