Open itowers1 opened 2 years ago
Note that I've only recently come across this issue after setting recruitment_decay
to 1, an equivalent example with recruitment_decay
as 0 runs successfully.
Confirming that I can reproduce the error with the code above.
I've looked more into the cause, the negative light numbers are coming about because there is a high density of leaf area just above this plant (i.e. just above 4m), causing canopy openness to drop from around 0.3 to near zero in a short height interval. Recall light environment is modelled with a spline. This spline is struggling with the transition to a value near zero. It wiggles around ever so much.
We've worried about this previously, but never so much do change anything.
Several possible avenues forward here
Hi team!
Finding certain cases where average light environment is less than 0, likely due to the interpolator, but unclear to me why this would be.
Checking out the
simple_water_use_model
branch, and running the following code, reproduces the error. Alternatively,repex_canopy_issue.R
inexample_vignettes
can also be used (has the below code).