Showing posts with label OMS3. Show all posts
Showing posts with label OMS3. Show all posts

Tuesday, June 3, 2025

OMS Runner Library: Streamlining Hydrological Model Execution

 The OMS Runner Library v1.2.2 represents a significant advancement in hydrological modeling workflow automation, specifically designed to simplify the execution of OMS3 (Object Modeling System) simulations. For hydrologists and water resources engineers working with GEOframe and OMS3, this Python library addresses the seamless integration and execution of simulation models across different computing platforms. What follows assume a lot of knowlege that you can get by looking to some of our Winter Schools or some of our lab classes as  Physical Hydrology (in Italian) or  Biosphere Atmosphere and Climate Interactions. 

What is OMS3?

The Object Modeling System (OMS3) is a Java-based framework widely used in environmental and hydrological modeling. It provides a robust platform for developing, coupling, and executing complex simulation models. However, working with OMS3 often requires dealing with Java classpaths, configuration files, and platform-specific execution commands – tasks that can be time-consuming and error-prone, especially for researchers focused on scientific analysis rather than software engineering.

The Solution: Python Integration

The OMS Runner Library bridges this gap by providing a comprehensive Python interface for OMS3 operations. This is particularly valuable because Python has become the lingua franca of scientific computing, with most hydrologists already familiar with its ecosystem of tools like pandas, matplotlib, and Jupyter notebooks.

The library automatically handles the complexities of Java environment detection, ensuring that Java JDK 11 is properly configured across Windows, macOS, and Linux systems. This cross-platform compatibility is crucial for research teams working in diverse computing environments, from field laptops running Windows to high-performance computing clusters running Linux.

Please find:

Version 1.2.4

Version 1.2.2

Key Capabilities

One of the library's standout features is its intelligent simulation management. It can automatically discover simulation files within a project, maintain configuration databases, and execute models either individually or in sophisticated batch processing workflows. For hydrologists working with multiple scenarios – such as climate change impact assessments or calibration procedures – the parallel execution capabilities can reduce computational time.

The library supports various execution patterns: sequential processing for dependent simulations, parallel execution for independent model runs, and asynchronous background processing for long-running computations. This flexibility allows researchers to optimize their workflows based on available computational resources and modeling requirements.

Practical Applications

In practical hydrological applications, this translates to significant productivity gains. A researcher studying watershed responses to different precipitation scenarios can now set up dozens of model runs with just a few lines of Python code, monitor their progress through Jupyter notebooks, and automatically collect results for analysis. The library's integration with popular Python data analysis tools means results can be immediately processed, visualized, and shared.

Users can explore more about GEOframe's capabilities and latest developments at the GEOframe blog, where detailed tutorials and case studies demonstrate advanced hydrological modeling workflows.

The comprehensive logging and error handling features are particularly valuable in operational hydrology contexts, where model reliability and traceability are paramount. The library maintains detailed execution histories, facilitates debugging, and provides clear diagnostic information when issues arise.


Tuesday, December 29, 2020

Some essentials about the Object Modelling System

This post is to give people the taste of what OMS is. For the Installations, please refer to the Installation page.  The user manual introduction can be found below:

  • OMS User Manual - Introduction (pdf, epub) 

Wednesday, October 9, 2019

GEOframe Winter School 2020 - It is time to apply !

The second edition on the Winter School on GEOframe will be held between January 8 and 17, 2020 in Trento, Italy.  The course is devoted to Ph.D. Students, Post-docs, Young researchers (and Professionals!) interested in estimating all the components of the hydrological cycle (rainfall, evapotranspiration, snow-melting, and river discharge).  The system they will learn allows to work out very small catchments and continental basins as well (e.g. Abera et al., 2017a,b) up to build operational solutions as the one used in in Basilicata.

The aim of the course is to enable participants to run their own simulations and eventually on their own catchments and estimate the hydrological budget components.
With respect to the 2019 Winter School, there will be more practice and more detailed work on evapotranspiration and rainfall-runoff. It will be much more focused on exercises and on getting the water budget performed under various hypotheses on models' structure.


Website for the enrollment go here.

For the hole definitive material of the School go here. 

The provisional topics will be:

Teachers will be:

Prof. Riccardo Rigon, Ph.D.
Prof. Giuseppe Formetta, Ph.D.
Marialaura Bancheri, Ph.D.
Niccolò Tubini, Ph.D. student



The topics (links added after the School):

To have an idea of the topics, the interested researchers should give look at the material (slides, video etc. of the 2019 Winter School).  The material of the first three days remains very similar (but refined) to the old one. Therefore, for students is possible also to participate only to the second week (at the same cost, but saving some lodging) but, in that case, is mandatory to follow the on-line courses and tutorials  relative of 8-9-10 January topics and having done the exercises before December 15. We will offer prompt online support to them up to that date and no support whatsoever on the same topics later or  between 13-17 of January for clear reasons of course efficiency and organisation.  The refined material of the first three days will be available on the Winter School website  from November 15, 2019.

With respect to the 2019 School, there will be more practice and more detailed material on Evapotranspiration and Rainfall-Runoff. For every 40 minutes of talk there will be 70 minutes of supervised exercise for a total of 8 hour a day of activities. 

Cost of the School is 350 Euros for who will subscribe before November 15, 400 Euros for others. A discount of 20 Euros is granted to fellows of the Italian Hydrological Society (subscriptions for students are available at the IHS-SII site for 10 Euros to students and 20 to seniors). Who attended the last year school can participate free of charge, upon subscription. Inclusive of the costs will be coffee breaks and lunch at the Cafeteria of Department of Civil, and one social dinner for all the schoolmates Environmental and Mechanical Engineering. 

Website for the enrollment go here.

For any further information, please fill free to contact me at riccardo.rigon <at> unitn.it

Tuesday, February 19, 2019

Material for the GEOframe Winter School - Radiation budget

After having spent time on preparatory topics, but before facing the hydrological processes, we need to cope with solar radiation. The topic was already treated in other posts. However not often in English.

Some very elementary slides about the sun:

Now some more complicate topics
Documentation of the components
Exercises illustrated by Jupyter notebooks by Michele Bottazzi
References

Corripio, J. G. (2002). Modelling the energy balance of high altitude glacierised basins in the Central Andes. Ph.D Dissertation, 1–175.

Corripio, J. G. (2003). Vectorial algebra algorithms for calculating terrain parameters from DEMs and solar radiation modelling in mountainous terrain, 17(1), 1–23.

Formetta, G., Rigon, R., Chávez, J. L., & David O. (2013). Modeling shortwave solar radiation using the JGrass-NewAge system. Geoscientific Model Development, 6(4), 915–928. http://doi.org/10.5194/gmd-6-915-2013

Formetta, G., Bancheri, M., David, O., & Rigon, R. (2016). Performance of site-specific parameterizations of longwave radiation. Hydrology and Earth System Sciences, 20(11), 4641–4654. http://doi.org/10.5194/hess-20-4641-2016

Material for the GEOframe Winter School - Catchments and Hydrologic Response Units delineation

The second day of the Winter School on GEOframe is dedicated to the watershed delineation and hillslope extraction. First the relevant concepts are given. Then GEOframe (Horton Machine) tools are used to get the desired results.
Requirements: if not already done, install numpy and rasterio with anaconda. These will be used to visualise the maps produced by the OMS Horton Machine tools.

Day 2 actual schedule ... We recovered something from the first day.

Work in progress

Material for the Winter School on the GEOframe System - Installations

The Winter School on the GEOframe system is approaching.  In this webpost you will find all the preparatory material of the school indexed.

Installations

You are not assumed to know Python or Java to participate to the School. However programs runs on Java.. We will not do any Java programming though.  Input/Output of models will be treated by using some scripting in Python. We will communicate the appropriate notions during the classes. However, for the interested there are plenty of courses on the web (for instance this comes from SciPy 2018. Other from SciPy here.)
  • Java. GEOframe and OMS are written in Java and they require to have installed Java on your computer. Here you can find instructions to install Java on your computer.  OMS need Java 8 JDK.  Please note that you need the Java Development Toolkit (JDK) installed not the Java Runtime Environment (JRE).  The official Oracle's pages are here. You can watch several videos for Windows: here. Googling you can get videos for your platform.
  • We are going to use Docker for our modelling. Therefore you need to install it (here for Linuxes) on your computer. To quickly understand what Docker is, you can see here. Or read this tutorial. This video could be useful too. The knowledge of Docker required will be extremely elementary. You will not be required to do Docker applications. You simply use one and, at the end, is just matter of executing a command. 
  • During the School we will use Jupyter and Python 3 for data management and visualisation. It would be great if you could arrive
    • The post at this link contains all the information needed. For installation of the software, we suggest Anaconda. For any problem contact us through the mailing list. 
    • To understand what a Jupyter notebook is about, please see its manual. However, we will use Jupyterlab.  (You can see a YouTube video about here).  One can think that Jupyter was heavily based on the look-and-feel of Mathematica notebooks: but Jupyterlab is a step ahead to something different. Installing Anaconda, you also have already installed Jupyter notebook. So you have just to try it issuing the command: 
      • Jupyter notebook
  • You still do not know what to do with it, but we will lear step by step during the Winter School
  • Finally, at least for MacOs user, due to a bug either in the Docker or in GEOtools, it is necessary to use the OMS Console.  You can download the beta 3.5.62 release from here.
  • If you want to further with Jupiter and Jupiterlab, you can  install BeakerX. For its installation, please follow verbatim the instructions here. The instructions given at the main page of BeakerX are incomplete ;-).