-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/separate hydrology #243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a sensible restructure to me! I've added a few minor comments, but nothing major really
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good - and definitely the refactoring makes sense now that the codebase an d potential use is growing. Excellent use of some of xarray capabilities.
I'm not sure on the question about the documentation. What equation does not show?
Thank you for the positive feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM too.
type fixed
I moved the hydrology (soil moisture and runoff) out of the
abiotic_simple_model
to a new model (hydrology_model
) to make it easier to plug in different (external) hydrology models that might have different levels of complexity and different time steps; for example HydroPy, SPLASH, WSIMOD. The functions are the same as before, just in a separate model. This means that thehydrology
initializes thesoil_moisture
variable which thesoil
model depends on, so has to come before that.In the course of this, I renamed the
simple_regression
module tomicroclimate
as this is more descriptive of what is going on there.There are still some features missing: the vertical (downward) flow, the subsurface flow, the horizontal flow between grid cells, the stream flow and the extraction of water by plant roots (=evapotranspiration). This will be implemented step by step after discussion with group members as it requires some thinking about the order of processes.
Question: The equation at the end of
hydrology_model
does not show in the online documentation, any suggestions why this could be?Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks