Sunday, April 6, 2025

Using GEOET's Prospero model with minimal variations for simulating the non capacitive energy budget of snow and soil

This post is not self-explanatory and requires digging into other posts and some papers. 

Please review Section 2 of Concetta's paper (https://onlinelibrary.wiley.com/doi/10.1002/eco.70009?af=R) and verify the calculations presented there.

The model in D'Amato and Rigon (2025) uses a non-capacitive approach (it doesn't account for the thermal capacity of plants), and so will be if the same derivation is specialized for snow (or soil), which is a limitation. However, this approach is still more physically based than semi-empirical formulations or degree-day methods commonly used. In the literature, these are referred to as "stationary solutions" of the system. Despite the name, these solutions respond instantaneously to changing boundary conditions (radiation, latent and sensible heat fluxes), as evident in equation (10), which varies with radiation, wind velocity, and roughness.

Equation (10) and subsequent equations in Concetta's paper are essentially the Prospero solutions (though exact implementation should be verified in Concetta's code). The time interval of integration is, in principle instantaneous, but eventually you would like to integrate it over a finite time step (a hour, or a day, for instance). 

A non negligible aspect is that snow can melt into water and for any temperature you get from the energy budget, you need to partition the water in liquid water and ice. For this reason you probably need a partitioning function, like the one used for partitioning precipitation in rainfall and snowfall or you can simply use a melting law like  in simple models but now the temperature used should not be the air tempeature but the snow temperature.  See melting in simple models in  the links below

for further information. 

An important term is missing from the formulation: heat exchange by conduction with the ground, which should be represented as:

G = C_s T_Δg := C_s (T_g - T_s)

Where:

  • C_s is an appropriate exchange coefficient (can be taken as C_s = K/L, where K is the bulk thermal conductivity of the layer and L is its depth)
  • T_g is the ground temperature (which could be taken as the multi-annual air temperature average)
  • T_s is the snow temperature

Since this flux depends on the independent variable, it introduces additional terms that modify solution (10). Please derive these calculations independently.

Other terms that don't depend on the independent state variables can be included in the S_nk term. With these modifications, the Prospero code can effectively simulate the snow energy budget. Similar arguments apply to soil modeling.

A further consideration is the proper parameterization of the conductances C and C_E fluxes in equation (10), which differ from transpiration cases. For soil, according to Lehman-Or theory, evaporation should be modeled as potential until the water storage exceeds a threshold S_T, then decreasing proportionally with storage below this threshold when implementing an integrated model (Details ? I do not know).

I know that there are several missing aspects in this post. Who is interested, please ask. 

P.S. - These components have then to be carefully coupled to the other components. With respect to this, please consider the following: 

First review the presentation materials I've shared:

Getting new features to the linear systems (Vimeo2025)

The topic is that, based on my analysis, the second option is clearly the one should be applied in integrated distributed models (like GEOframe-NewAGE). However, this means we cannot simply subtract ET (or any other sink) from total rainfall - we need to incorporate this directly into the equation solver. While the example in the presentation uses a linear system with an analytical solution, the same principle applies to our non-linear fluxes where we use numerical integration. Therefore appropriate modifications could be necessary to the basic GEOframe-NewAGE codes. 

Thursday, April 3, 2025

A Ph.D. position on Advancing Physics-Informed Machine Learning for Environmental Modeling and Smart Irrigation Systems

Project Overview

This PhD grant, funded by Fondazione Bruno Kessler, aims to develop an advanced Physics-Informed Machine Learning (PIML) framework for modeling complex hydrodynamic and environmental systems. By integrating physical principles with data-driven methods, the research will focus on optimizing next-generation irrigation strategies. The project will harness the synergy between physical laws (as implemented in the GEOSPACE system) and machine learning to enable predictive, real-time, and scalable modeling tools for sustainable water resource management.

Key Objectives
  • Design hybrid PIML models that combine governing equations with data-driven predictive models (e.g., neural networks);
  • Improve predictive accuracy and generalizability across heterogeneous environmental conditions;
  • Incorporate real-time sensor data inputs to refine model states and parameters;
  • Benchmark PIML approaches against traditional numerical solvers and/or black-box machine learning models.

Methodological Approach

The core innovation of this project lies in the integration of physical constraints (as derived from GEOSPACE) into machine learning models. Building on recent advances in PIML, the goal is to design, develop, and validate models that enforce conservation laws and boundary conditions within neural architectures. This may involve:

  • Embedding partial differential equations (PDEs) directly into the loss functions of machine/deep learning models;
  • Developing adaptive training strategies to trade-oO data fidelity and physical consistency;
  • Utilizing sensor data to dynamically assimilate environmental variability into model predictions;
  • Leveraging high-performance computing to train and deploy models at scale across complex
  • domains.


Expected Outcomes

This integration will enable:
  • Accurate and efficient modeling of water distribution and use in precision irrigation systems;
  • Real-time monitoring and decision-support capabilities for agricultural and environmental applications;
  • Enhanced data efficiency and model robustness through physics-based regularization;
  • Improved understanding of system dynamics under data-scarce and/or non-stationary conditions.

Implementation Timeline

Months 1–6: Literature review on PIML methodologies;
Months 7–18: Design and develop a core PIML architecture, integrating IoT data sources;
Months 19–24: Validate models using lab-scale and field experimental datasets;
Months 25–36: Upscale models to real-world irrigation systems deployed within ongoing local and EU
projects (e.g., IRRITRE, AGRIF .OODTEF), and quantitatively assess their impact on water-saving strategies.

Possible Collaborations

Fabio Antonelli, Fondazione Bruno Kessler; Sara Bonetti and Concetta D'Amato, EPFL

Info: abouthydrology <at>  gmail.com

Sunday, March 30, 2025

A Ph.D. position ! Advanced Soil Biota-Hydraulics Interface for the WHETGEO-GEOSPACE system

Project Overview

This subproject, funded under the ICOSHELL project, aims to develop an integrated modeling
system that explicitly accounts for the dynamic interactions between soil biota activity and soil
hydraulic properties. Building upon the WHETGEO-1D and 2D frameworks, we will implement a
novel coupling between soil fauna population dynamics and plants root growth, evolving soil
hydraulic characteristics. The modelling system implemented will be eventually used for studying
the feedback between soil-vegetation hydrology.

Key Objectives


  • Extend the WHETGEO model architecture to incorporate time-varying soil hydraulic properties influenced by soil biota 
  • Implement the Kosugi soil water retention curve model with parameters that dynamically evolve based on biological activity
  • Develop and integrate a population dynamics module for key soil engineers (earthworms, ants, termites)
  • Create a comprehensive validation framework using laboratory and field experimental
  • data
Figure from Enrico Chiesa Master Thesis


Methodological Approach

The core innovation of this subproject is the implementation of a feedback loop between
 biological activity and soil physics. Following Meurer et al. (2020), we will start to model how earthworm populations modify soil structure, but significantly expand this approach by:

  • Replacing the van Genuchten model with the Kosugi water retention curve formulation, which provides a more direct physical interpretation of pore size distribution
  • Developing a differential equation system where the Kosugi parameters (median pore size and standard deviation) are directly modified by biological activity
  • Implementing these dynamics within the robust NCZ algorithm of WHETGEO, ensuring numerical stability across diverse conditions
  • The population dynamics will be modeled as a set of ordinary differential equations representing different functional groups of soil engineers, their reproduction, mortality, and activity rates as functions of environmental conditions (temperature, moisture, organic matter)

Expected Outcomes


This integration will allow to better capture:

• The temporal evolution of soil infiltration capacity following land-use changes

• The self-reinforcing positive feedback loops of ecosystem restoration, where initial

vegetation changes trigger soil biological activity that further enhances water retention

• The resilience of soil hydrological function under climate change scenarios


Implementation Timeline

Months 1-6: Preliminary studies, doctoral school activities

Months: 6-18 Implement Kosugi model in WHETGEO framework, develop and integrate

population dynamics module Months 18-24: Validate against experimental data Months 32-36:

Upscale to field applications and integration to estimate catchment scale effects. Study effects of

soil management

Possible collaborations

EPFL Lausannne, Prof. Sara Bonetti and Dr. Concetta D'Amato

Info: abouthydrology <at>  gmail.com

Wednesday, March 12, 2025

The Marvelous Physics of Plants: a personal Introduction

 "The Marvelous Physics of Plants" presents an exploration of the physics behind how plants function, particularly focusing on water transport mechanisms. The presentation begins with poetic descriptions of plant processes, then explores Erwin Schrödinger's fundamental question about how physics and chemistry can explain the events within living organisms. The authors examine various physics domains relevant to plants: quantum physics, thermodynamics, hydraulics, micrometeorology, stability, and light.

Among the other things,  the authors examine the physical limits of tree height, discussing how hydraulic restrictions ultimately limit how tall trees can grow. They also demonstrate synthetic tree models that scientists have created to replicate these natural mechanisms.

The slides combine mathematical formulations, anatomical diagrams, and experimental results to illustrate the physical principles governing plant function. A video of the talk is also available.


Friday, February 28, 2025

Three Batchelor Graduation Works

The first  Thesis-poster,  by Agnese Cavazzini, supervised by Gaia Roati and me, presents a hydrological study of the Secchia River basin using the GEOframe-NewAGE system. The research analyzes water balance and simulates river flow while generating soil moisture maps to identify drought-prone areas. Key elements include watershed division into sub-basins, mass balance equations, and calibration against measured data. Results show flow simulations at two monitoring stations and soil moisture anomaly maps. The successful implementation provides valuable insights into the basin's hydrological dynamics across Modena, Reggio Emilia, and Mantova provinces. You can get a high resolution poster by clicking on the Figure below..


The second Thesis-poster, by Lorenzo Dalsasso,  presents a statistical analysis of ground precipitation patterns by Lorenzo Dalsasso. Using hourly precipitation data from three weather stations, the study evaluates which probability distributions best represent precipitation duration, intensity, and intervals between events. A Python notebook with Kolmogorov-Smirnov tests determined that lognormal distributions best fit precipitation durations, Weibull distributions best represent precipitation intensities, and either Weibull (stations ID 40 and 1100) or lognormal (station ID 263) best characterize intervals between precipitation events. The results include detailed statistical parameters for each station. The high resolution poster can be found by clicking on the Figure below. 




Thr third thesis-poster presents Marco Feltrin's study on evapotranspirative fluxes in grapevines by integrating the GEOSPACE ecohydrological model with WiseConn sensor technology (dr. Marco Bezzi). The research compares two rainfall scenarios: a wet scenario (1147 mm of total precipitation) and a dry scenario (682.4 mm of total precipitation) to evaluate plant water stress. Using the one-dimensional GEOSPACE model with data from a vineyard near Verona, results show that the dry scenario led to half the plant transpiration during summer months. The model effectively demonstrates how water content throughout the soil column affects water stress in plants, with practical applications for irrigation management, water conservation, and predicting water availability for viticulture under changing climate conditions.  The high resoltion poster can be found by clicking on the Figure below. 







Thursday, February 6, 2025

Biosphere, Atmosphere, Climater Interactions 2025 Class

The second part of this course explores the Soil-Plant-Atmosphere Continuum (SPAC). Below you will find materials covering soil properties, their mathematical representations, and an introduction to plant functioning. Students are expected to review these materials as an assignment before our class discussion of the concepts. In the latter portion of the course, we will conduct numerical experiments together using the GEOSPACE system.


Water in soils 
 (Storyboard2020)
Once precipitations arrive to the ground surface they either infiltrate or generate runoff. We first state how they infiltrate and, actually how water behave in the soil and in the ground. We talk about the complexity of the Earth surface that contains life and call it, the Critical Zone. To study infiltration we introduce the Darcy and Richards equations of which we explain the characteristics.
 Hydraulic Conductivity
Richardson - Richards equation
 - The Richardson-Richards equation  (Storyboard 2020)

Evaporation generalities (Storyboard2020)

A consistent part of root zone and surface water evaporates and returns to the atmosphere to eventually form clouds and precipitation again. The process follows quite complicate routes and is different when happening from liquid surfaces, soil or vegetation (and BTW animals).  In this group of lectures we try to figure out the physical mechanisms that act in the process and give some hint on methods to estimate evaporation and transpiration with physically based models. 
Evapotraspiration
Evapotraspiration II
Supplemental Material
Further Reading

D’Amato, Concetta, and Riccardo Rigon. 2025. “Elementary Mathematics Can Help to Shed Light on the Transpiration Budget under Water Stress,” January. https://doi.org/10.1002/ECO70009.

Go to the lab Page

The Hydrological Modeling 2025 class

 Welcome to the 2025 Hydrological Modeling Class!

To better understand the materials provided:

  • Storyboards – Summaries of the lectures, usually in Italian.
  • Whiteboards – Explanations of specific topics, presented on a whiteboard using Notability on an iPad.
  • Slides – Commented in English (available since 2021).
  • Videos – Recorded during lectures to complement the slides, with no editing (as post-production would be too time-consuming).
    • 2025 videos are available on a [Vimeo Showcase] (link here).
  • Additional information & references – Marked in italics, for the curious and the brave who want to explore further.

📅 24 February 2025 – Part I

Syllabus & Introduction to Hydrological Modeling

In this session, I introduced the course and its learning-by-doing philosophy. We cover all theoretical concepts first, followed by the practical applications (with Professor Giuseppe Formetta).

The real start 

To begin is also worth to have a little (philosophical) analysis of what a model is. This is what done in the following parte of the lecture

📅 25 February 2025 – Geomorphometry

This session begins with a discussion of previous lesson topics and the rationale behind introducing geomorphometric concepts. Since catchments are spatially extended, understanding their geometry is essential for studying catchment hydrology.

In the first part, we focus on the geometrical and differential characteristics of topography, including:

  • Elevation
  • Slope
  • Curvature

These parameters are fundamental for extracting the river network and identifying different parts of a catchment.

We then define drainage directions and explore how they are computed using Digital Elevation Models (DEMs)—where topography is discretized on a regular grid. From these drainage directions, we determine the total contributing area at each point of a DEM.

These two key characteristics allow us to:

  1. Identify channel heads and extract the river network.
  2. Define hillslopes and establish an initial framework for Hydrologic Response Units (HRUs).

    📅 3 March 2025 

    Q&A - 

    Interpolations 
    This lecture, assuming that now you have at least the concepts of what a catchment is and theoretically you know how to extract it and subdivide it in parts, deals with the data to feed catchments hydrology models. Because catchments have a spatial distribution, then also the driving data must be distributed. We need therefore methods of interpolation. 

    Installations of the software can be found here, at this link.

    📅 10 March 2025 

     Interpolations part II
    In this class we try to understand how to estimate the errors over the estimates. Besides we introduce a method (the Normal Score) to avoid to obtain negative values when positive interpolated values are required.
    Q&A - 
    Spatial Interpolation (Vimeo2023)

    Hydrological Models. This is a class about hydrological models, so what are they ?

    The title is self-explanatory. A theoretical approach to modelling is necessary because we have to frame properly our action when we jump from the laws of physics to the laws of  hydrology. Making hydrology we do not have to forget physics but for getting usable models we have to do appropriate simplifications and distorsions. The type of model we will use in the course are those in the tradition are called lumped models. Here we also introduce a graphical tool to represent these models.

    📅 17 March 2025 

    Hydrological Models 

    For old material give a look to Hydrological Modelling 2023

    📅 25 March 2025 

     Linear Models for HRUs

    Once we have grasped the main general (and generic) ideas, we try to draw the simplest systems. They turn out to be analytically solvable, and we derive their solutions carefully. From the group of linear systems springs out the Nash model, whose derivation is performed.  Obviously, it remains the problem to understand how much the models can describe "reality". However, this an issue we leave for future investigations.
    A little more on the IUH and looking at the variety of HDSys models

    We introduced previously without very much digging into it the concept of Instantaneous Unit Hydrograph. Here we explain more deeply its properties, Then we observe that there are issues related to the partition of fluxes and we discuss some simple models for obtaining them. Not rocket science here. The concept that we need those tools is more important than the tools themselves. We also observe that linearity is not satisfactory and we give a reference to many non linear models. Finally we discuss an implementation of some of the discussed concepts in the System GEOframe. 

    📅 31 March 2025 

      📅 7 April 2025 

      • Additional material
      Digressions I - A Glimpse on distributed process-based models
       Travel Time, Residence Time and Response Time
      Here below we started a little series of lectures about a statistical way of seeing water movements in catchments. This view has a long history but recently had a closure with the work of Rinaldo, Botter and coworkers. Here it is presented an alternative vie to their concepts. Some passages could be of some difficulty but the gain in understanding the processes of fluxes formation at catchment scale is, in my view, of great value and deserves some effort.  The way of thinking is the following: a) the overall catchments fluxes are the sum of the movements of many small water volumes (molecules); b) the water of molecules can be seen through 3 distributions: the travel time distribution, the residence time distribution and the response time distributions; c) the relationships between these distributions are revealed; d) the relation of these distributions with the the treatment of the catchments made through ordinary differential equations is obtained through the definition of age ranked distributions; e) The theory this developed is a generalizations of the unit hydrograph theory. 

      📅 14 April 2025 

      Some References (advanced)
      Additional material

      Digressions I - A Glimpse on distributed process-based models
      Digressions II - Radiation -  After all radiation moves it all.
      Digressions III 
      Equations for disease spreading (Out of schedule)
      Digressions IV

    • Examples of Applications:
    • Intermedia

          Tuesday, February 4, 2025

          The Hydrology Class Lab 2025

           The lab component makes up nearly half of the course, following the motto:

          "Learning by doing."

          Throughout the lab, you will conduct at least three key numerical experiments:

          • Time Series Analysis – Exploring various data elaborations with various Jupyter Notebooks and a little of Python
          • Intensity-Duration-Frequency (IDF) Curves – Estimating rainfall intensity over different time scales with various Jupyter Notebooks and a little of Python, as well 
          • Infiltration Experiments – Investigating soil absorption dynamics using the WHETGEO system
          • Evaporation & Transpiration Experiments – Understanding water loss processes in different conditions using the GEOSPACE ssytem

          Resources

          🔹[Vimeo Showcase – General Lab Videos]

          🔹[OSF Repository – Lab Materials]

          🔹[Theory and Concepts here]


          📌 Detailed videos and materials for each experiment are listed below.



           2025-03-03 Introduction to working with Jupyter and Notebooks

          2025-03-10 How to read and plot data
          2025-03-25 San Martino Reprise
          2025-03-31 Gumbel derivation

          Interpolating the Gumbel distribution to annual precipitation maxima
          2025-04-08 Where to find the data

          • Finding the data for the Time Series Analysis (Vimeo2025)

          The Hydrology class 2025

          The Hydrology 2025 Course will be 90% similar to last year's class, with only minor modifications. You can find details about the tools used and other relevant information in the  2023 Index (a quick 3-minute read).This page provides access to course materials, including slides, videos (both old and new), and other resources.

          Hydrology is a fascinating field because water is essential for life and human activities. It is fundamentally the Physics of the Hydrological Cycle, yet it is deeply interconnected with biochemical processes and geology due to water's crucial role in ecosystems. Here a brief introduction from a National Geographics post.  A companion page is available for the laboratory exercises, where you can find all the necessary materials for hands-on practice.


          The lab material is here. 

          Classes and Related Materials

          Available Resources

          • Storyboards – A summary of the lecture, usually in Italian.
          • Whiteboard – A detailed explanation of a specific topic, presented using Notability on an iPad.
          • Slides – Commented in English.
          • Videos – Commentary on the slides, typically recorded during lectures with no editing (as post-production would be too time-consuming).
            • 2025 Videos are available on a Vimeo Showcase [link here].
          • Additional Information & References – For those eager to explore more, supplementary details and references are provided in italics.

          Class Schedule & Materials

          📅 24 February 2025 – Introduction to the Course and Hydrology

          • 🔎 Complementary Reference:

          📅 25 February 2025 – Ground-Based Precipitation and Its Statistics

          📌 Topic: Understanding precipitation distribution, intensity, and extreme events—essential for engineering applications.