Skip to content

removed understorey vegetation from leaf area index sum#1170

Merged
vgro merged 3 commits intodevelopfrom
1169-remove-understorey-vegetation-from-lai-sum-in-abiotic-simple
Dec 2, 2025
Merged

removed understorey vegetation from leaf area index sum#1170
vgro merged 3 commits intodevelopfrom
1169-remove-understorey-vegetation-from-lai-sum-in-abiotic-simple

Conversation

@vgro
Copy link
Copy Markdown
Collaborator

@vgro vgro commented Dec 2, 2025

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

  • New feature (non-breaking change which adds functionality)
  • Optimization (back-end change that speeds up the code)
  • Bug fix (non-breaking change which fixes an issue)

Key checklist

  • Make sure you've run the pre-commit checks: $ pre-commit run -a
  • All tests pass: $ poetry run pytest

@vgro vgro linked an issue Dec 2, 2025 that may be closed by this pull request
@vgro vgro requested a review from jacobcook1995 December 2, 2025 10:16
Copy link
Copy Markdown
Collaborator

@jacobcook1995 jacobcook1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.36%. Comparing base (035163b) to head (a05b7f8).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vgro vgro merged commit 8e07f18 into develop Dec 2, 2025
13 checks passed
@vgro vgro deleted the 1169-remove-understorey-vegetation-from-lai-sum-in-abiotic-simple branch December 2, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove understorey vegetation from LAI sum in abiotic simple

3 participants