This time, I want to address the concerning issue of students inappropriately reusing open-source code without a clear understanding of open-source licenses.
My reflections and notes about hydrology and being a hydrologist in academia. The daily evolution of my work. Especially for my students, but also for anyone with the patience to read them.
Tuesday, December 26, 2023
Code Washing
Friday, November 17, 2023
Some pills on what we do for agriculture droughts
Just to introduce the debate about droughts simulation, agriculture, new technologies that can be used for improving agriculture. Below the presentation.
Thursday, November 9, 2023
Java for Hydrologists 101
There are a few postings on Java in this blog. Since I want to teach it to my students, I am quietly starting to populate this page with presentations which, eventually, will constitute the core of an informal class (;-)) the Java for Hydrologsts 101. The first version of this blog dated back to more than 10 years ago and this gives the idea on how slow thing could go. The text presented here is at present the same but I am progressively modifying it.
* - A few diversions
- Short Intro to UML* class diagram (YouTube 2018)
- UML - stands fro Universal Modelling Language. It is a set of graphic tools that can be used to sketch OO programs. The classical reference is Martin Fowler's, UML 2.0 distilled, 2003. It is a short and nice and time-affordable reading.
- Naming Conventions (YouTube2018)
- The Structure of a Java Class and something about Javadoc (YouTube2018)
- Reading data from the console
- Storyboard of the classes
- Reading data from a File (no frills, no much design) (YouTube Live Video)
- Writing data to a File (no frills, no much design) (YouTube Live Video)
- Reading and writing data to a File. Designing the classes (YouTube Live Video)
- Reading and writing data to a File with Java 8. (YouTube Live Video)
- For getting more on Streams see the chapter 3 of Modern Java in Action (a book worth to buy).
- For Getting more on Lambdas, Chapter 6 to 9 of Modern Java in Action .
- Learning a little better what is a regular expression
- Reading and writing data to a File with Java 8 II and III (YouTube video)
- From command line
- from Eclipse (EGit)
Please go to this blogpost where you can find links to books and various material.
^* - From the links you can quite understand the I rely very much on Lars Vogel site for the basic stuff. It is not obviously the only good resource available (stackoverflow is another one, for instance, and many others will be addressed). Now you can also take the code and splice into a LLM and have further information and help.
Saturday, October 28, 2023
CARITRO Project: Snow droughts e green water: how climate change modifies the hydrological cycle in the Alpine Region.
Friday, October 27, 2023
Open Science by Design
Friday, October 20, 2023
Identifying Snowfall Elevation Patterns by Assimilating Satellite- Based Snow Depth Retrievals
The analysis of the snowfall elevation patterns' spatial characteristics indicates that the proposed assimilation scheme results in more accurate spatial patterns in the snowfall distribution across the entire basin. The derived snowfall orographic patterns contribute to a comprehensive improvement of mountain hydrologic variables such as snow depth, snow cover area, and streamflow. The most significant enhancements in streamflow are observed during the spring and summer months when peak flow observations align more accurately with the posterior cases than the prior ones. These results primarily stem from the fact that the assimilation of Sentinel-1 assigns less snowfall to the lower-elevation regions of the basin, while higher rates are assigned to the higher elevation. As summer approaches, water is released more slowly from the higher elevation via snow-melt than in the prior case, which aligns better with observations. The assimilation of Sentinel-1 effectively downscales coarser-resolution precipitation products. While the prior snowfall cumulative elevation pattern has a small gradient across elevation bands, these patterns are consistent across elevations and precipitation products after the assimilation of snow depth retrievals. In conclusion, this study provides a framework for correcting snowfall orographic patterns across other seasonally-snow dominated mountain areas of the world, especially where in-situ data are scarce. The full paper can be found by clicking on the Figure above.
Reference
Girotto, Manuela, Giuseppe Formetta, Shima Azimi, Claire Bachand, Marianne Cowherd, Gabrielle De Lannoy, Hans Lievens, et al. 2023. “Identifying Snowfall Elevation Patterns by Assimilating Satellite-Based Snow Depth Retrievals.” The Science of the Total Environment, September, 167312. https://doi.org/10.1016/j.scitotenv.2023.167312.
Thursday, October 19, 2023
Water4All - WaMaWaDit project
The project WaMA-WaDiT: Water Management and Adaption based on Watershed Digital Twins was financed in the Water4All call and therefore, we will be able to start a new exciting adventure with some challenge.
This proposal aims to understand the impact of extreme climate events such as droughts and floods on water management systems, with the goal of developing optimized management strategies that maximize water security under both current and future climate change conditions. The knowledge gained will be used to create a watershed digital twin framework, applicable to various watersheds with different water-related issues. A guide will be published detailing the process of building digital twins for specific watersheds and problems.
The proposal that you can find in its complete form by clicking on the above logo, pursues three main objectives: the scientific, the practical, and the product objectives. The scientific objective focuses on improving our understanding of how drought and floods affect water management systems, and how optimal strategies can mitigate these effects. This involves several sub-objectives, such as determining the best databases for modeling water management problems, analyzing systematic errors in climate and hydrologic predictions, improving the inclusion of groundwater dynamics models, incorporating complex snow dynamics, assessing the effect of long-term forecasts of extreme events on reservoir management, and improving the parameterization of single hydrological processes.
The practical objective is to create a methodology that systematizes the proposal and assessment of adaptation measures in reservoirs. This methodology will provide a clear guide on how to develop decision frameworks based on the most robust numerical models or digital twins of the watershed. It will also tackle how to manage hydroclimatic extremes like floods and droughts, emphasizing dynamic management of safety margins to maximize water availability and ways to reduce the impact of persistent droughts.
The product objective is to implement this methodology in a free, open-source software tool that simplifies the use of scientific knowledge for decision-makers and reservoir managers. This tool aims to be robust and scalable, providing a first-order approximation to any problem. It will encourage end-users to adopt optimal tools for their needs by demonstrating the power






