1181 canopy evaporation is not returned properly#1227
Merged
Conversation
…ero_resistance_understorey
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1227 +/- ##
===========================================
- Coverage 95.00% 94.96% -0.04%
===========================================
Files 71 71
Lines 7271 7273 +2
===========================================
- Hits 6908 6907 -1
- Misses 363 366 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jacobcook1995
approved these changes
Dec 16, 2025
Collaborator
jacobcook1995
left a comment
There was a problem hiding this comment.
LGTM, just one small thing
|
|
||
| [[variable]] | ||
| axis = ["spatial"] | ||
| description = "Interception" |
Collaborator
There was a problem hiding this comment.
Think this needs a longer description
Collaborator
There was a problem hiding this comment.
Oh hell, they all need a longer description. And units. And proper axes. I think we're gunna need a bigger PR 😄
Collaborator
Collaborator
Author
…tps://github.com/ImperialCollegeLondon/virtual_rainforest into 1181-canopy-evaporation-is-not-returned-properly
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 problem was that part of the canopy water balance were averaged over all canopy layers and therefore returned 1D variables - for the rest to work we require 2D variables. This PR updates interception and canopy evaporation to 3D and includes the understorey layer. I dropped the
leaf_drainagefor simplification - we assume that all water falls down in one time step (1 day) so it was a bit pointless.I also got rid of the understorey aerodynamic resistance for now assuming that it is the same as the canopy, and I renamed the aerodynamic resistance of the soil for clarification (see this comment) by @davidorme .
I believe this also fixes #1162 .
Fixes #1181
Type of change
Key checklist
pre-commitchecks:$ pre-commit run -a$ poetry run pytestFurther checks