Skip to content

Add effective soil saturation as output state - #71

Merged
matteomasi merged 4 commits into
mainfrom
70-add-soil-saturation-state
Nov 6, 2026
Merged

matteomasi merged 4 commits into
mainfrom
70-add-soil-saturation-state

Conversation

@matteomasi

Copy link
Copy Markdown
Contributor

This pull request adds support for saving the effective soil saturation (Se) as an optional model output, defined as:
S_e = (Wc + Wg) / (Wc0 + Wg0)

New configuration and documentation:

  • Added a new soil_saturation (Se) option to the output_states configuration, allowing users to save effective soil saturation. Documentation and example config files have been updated.

Core logic and data handling:

  • Updated the simulation module (mobidic/core/simulation.py) to pass the total soil water capacity (wtot0) to the state writer when soil_saturation output is enabled.
  • Modified the StateWriter class to accept and validate soil_capacity

Output calculation and metadata:

  • Implemented the calculation of effective soil saturation and added it as a variable in the NetCDF output when enabled.
  • Added metadata for the new Se output variable, including units, description, and valid range.

@matteomasi matteomasi linked an issue Nov 6, 2026 that may be closed by this pull request
@matteomasi
matteomasi merged commit 40575ab into main Nov 6, 2026
14 checks passed
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.

Add effective soil saturation as output state

1 participant