Corrections following a review of the package code by Claude Code, in comparison with the Capsis SamsaraLight Java library.
8E, 4P) and the Capsis particular cases.trunk_interception = TRUE (default in run_sl()).SLLighterLegacy): a trunk intercepts all the remaining energy of the ray, but the crown parts behind it are still counted in the potential energy of their tree (they were previously skipped), and the trunk no longer reduces the potential energy of its own crown. With porous envelopes, a trunk behind a part of its own crown now also stops the ray (previously it let the ray through). Interceptions at equal distance keep their order (stable sort, as in Capsis). This changes epot, lci and rci when trunk_interception = TRUE.src/Makevars).8E, 4P): paths are now computed exactly when the target lies on a cut plane of the fraction (e.g. trees located exactly on a cell-centre coordinate). A ray running along a cut plane is counted once instead of twice, a target within the rounding tolerance of a cut plane is placed on it, and a cut-plane point coinciding with the target is no longer counted twice (which dropped the interception). Departure from Capsis, which has the same rounding tolerance but not these corrections.P, E, 2E): the crown radius is now the mean of the provided radii, as announced by check_inventory() (previously only rw_m was used). Results change for these crowns when their radii differ.crown_lad is no longer required in the tree inventory when crowns are porous envelopes (turbid_medium = FALSE).master) reported as a warning by recent compilers.rci (ray competition index): the proportion of the rays intercepted by a tree crown that were already intercepted by another crown (rci_direct and rci_diffuse in the detailed output).plot.sl_output(): new option what_trees = "compet_rays" to map the RCI.params element (including detailed_output), and input only contains the sl_stand and monthly_radiations objects.validate_sl_output() now checks all main output columns (epot, lci, eunobs, rci, pacl, punobs).pak::pkg_install().