Conversation
jacobcook1995
approved these changes
Dec 2, 2025
Collaborator
jacobcook1995
left a comment
There was a problem hiding this comment.
LGTM, and can confirm that that change gives me more reasonable temperatures to work with
| leaf_area_index_sum = data["leaf_area_index"].sum(dim="layers") | ||
| leaf_area_index_sum = data["leaf_area_index"][ | ||
| layer_structure.index_filled_canopy | ||
| ].sum(dim="layers") |
Collaborator
There was a problem hiding this comment.
Only query would be whether it's worth adding a TODO to revisit this at some point when you are further along with the vegetation heat transfer model that you mentioned? (I'm not 100% on that though)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1170 +/- ##
========================================
Coverage 94.36% 94.36%
========================================
Files 70 70
Lines 7058 7058
========================================
Hits 6660 6660
Misses 398 398 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The abiotic simple model is based on observations of temperatures at 1.5 m below a canopy. At the moment the model sums the LAI over all layers, including the understorey layer which has a very high LAI. That causes the soil to be freezing. Although the understorey vegetation takes some light from hitting the soil, the LAI is currently high and the cooling unrealistic.
I propose removing the understorey vegetation from the summing step. This does not solve the issue of a canopy being lower than 1.5m, but it gives a correct representation of the initial assumptions.
Fixes #1169
Type of change
Key checklist
pre-commitchecks:$ pre-commit run -a$ poetry run pytest