Calculate site shade
calcSiteShade(currentTime, cohortData, speciesEcoregion, minRelativeB)The current simulation time e.g., time(sim).
A data.table with columns: pixelGroup, ecoregionGroup,
speciesCode, and optionally age, B, mortality, aNPPAct, and sumB.
A data.table with species-ecoregion-specific species trait values.
Ecoregion refers to "ecolocation", a categorical variable grouping sites with similar biophysical
characteristics. The table should have at least the following columns: speciesCode and
ecoregionGroup, character representation of species and ecoregion groups respectively,
maxB the maximum biomass for the species in a given 'ecoregion', maxANPP the maximum
aboveground net primary productivity and SEP the species establishment probability.
May contain columns inflationFactor (used to adjust maxB) and mANPPproportion
(used to calculate maxANPP).
a data.frame with the cut points to classify stand shadiness.
cohortData table with a siteShade column