Package: SamsaRaLight 1.1.0

Natheo Beauchamp

SamsaRaLight: 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) <doi:10.1016/S0168-1923(02)00254-X>.

Authors:Natheo Beauchamp [aut, cre], Gauthier Ligot [aut], Francois de Coligny [aut], Maxime Jaunatre [aut], Benoit Courbaud [aut, cph]

SamsaRaLight_1.1.0.tar.gz
SamsaRaLight_1.1.0.zip(r-4.7-x86_64)SamsaRaLight_1.1.0.zip(r-4.7-arm64)SamsaRaLight_1.1.0.zip(r-4.6-x86_64)SamsaRaLight_1.1.0.zip(r-4.6-arm64)
SamsaRaLight_1.1.0.tar.gz(r-4.7-arm64)SamsaRaLight_1.1.0.tar.gz(r-4.7-x86_64)SamsaRaLight_1.1.0.tar.gz(r-4.6-arm64)SamsaRaLight_1.1.0.tar.gz(r-4.6-x86_64)
SamsaRaLight_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
SamsaRaLight/json (API)

# Install 'SamsaRaLight' in R:
install.packages('SamsaRaLight', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/natheob/samsaralight/issues

Pkgdown/docs site:https://natheob.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • data_bechefa - Example forest inventory datasets for SamsaRaLight
  • data_cloture20 - Example forest inventory datasets for SamsaRaLight
  • data_IRRES1 - Example forest inventory datasets for SamsaRaLight
  • data_prenovel - Example forest inventory datasets for SamsaRaLight

On CRAN:

Conda:

cppopenmp

3.30 score 10 scripts 38 downloads 18 exports 61 dependencies

Last updated from:67d60e94c7. Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK159
linux-devel-x86_64OK195
source / vignettesOK250
linux-release-arm64OK177
linux-release-x86_64OK189
windows-devel-arm64OK279
windows-devel-x86_64OK178
windows-release-arm64OK246
windows-release-x86_64OK156
wasm-releaseOK139

Exports:check_coordinatescheck_inventorycheck_monthly_radiationscheck_polygoncheck_sensorscreate_sl_standcreate_xy_from_lonlatget_bottom_azimutget_monthly_radiationsget_zplot_inventoryplot_slope_profilerun_slrun_sl_advancedsl_compute_nrj_diffusesl_compute_sunazimutsl_create_rays_diffusesl_create_rays_direct

Dependencies:askpassbase64encclassclassIntcliconcavemancpp11curldata.tableDBIdplyre1071farvergenericsgeometriesggforceggnewscaleggplot2gluegtablehttrisobandjsonliteKernSmoothlabelinglifecyclemagrittrMASSmimeopensslpatchworkpillarpkgconfigpolyclipproxypurrrR6RColorBrewerRcppRhpcBLASctlrlangs2S7scalessfsfheadersstringistringrsyssystemfontstibbletidyrtidyselecttweenrunitsutf8V8vctrsviridisLitewithrwk

A typical example workflow

Last update: 2026-04-16
Started: 2026-04-16

Model definition
1 - Define the virtual stand from an input tree inventory | 2 - Discretize the annual light and cast the light rays | 3 - Determine interceptions between light rays and tree crowns | 4 - Estimate the attenuation of light throughout successive interceptions | 5 - Compute the output light variables

Last update: 2026-04-16
Started: 2026-04-16