EGU2020-15377, updated on 21 Sep 2023
https://doi.org/10.5194/egusphere-egu2020-15377
EGU General Assembly 2020
© Author(s) 2023. This work is distributed under
the Creative Commons Attribution 4.0 License.

Interfacing FORTAN Code with Python: an example for the Hydrus-1D model

Raoul Collenteur1, Matevz Vremec2, and Giuseppe Brunetti3
Raoul Collenteur et al.
  • 1University of Graz, Earth Sciences, Hydrogeology, Graz, Austria (raoul.collenteur@uni-graz.at)
  • 2University of Graz, Earth Sciences, Hydrogeology, Graz, Austria (matevz.vremec@uni-graz.at)
  • 3Institute of Hydraulics and Rural Water Management, University of Natural Resources and Life Sciences, Vienna, Austria (giuseppe.brunetti@boku.ac.at)

HYDRUS-1D is a popular software suite for one-dimensional modeling of flow and transport through the vadose zone [1]. Models can be handled through the Graphical User Interface (GUI), made freely available by the original authors (https://www.pc-progress.com/). As the program is file-based, the HYDRUS-1D GUI already ensures a certain degree of reproducibility, as these files contain all information about a model. The original FORTRAN code of the HYDRUS-1D model is also made available and is used in many publications to perform more complicated analysis of flow and transport through the unsaturated zone. For each of these publications new code was programmed to change the input files and perform a specific analysis. Being a popular hydrological model, it seems only logical to start reusing such code and structurally develop its capabilities. In the presentation, we introduce Phydrus, an open source Python package to create, optimize and visualize HYDRUS-1D models. Python scripts or Jupyter Notebooks are used for all steps of the modeling process, documenting the entire workflow and ensuring reproducibility of the analysis. Connecting HYRDUS-1D to Python makes it easier to perform repetitive tasks on models, and potentially opens up a whole new set of possibilities and applications. While introducing Phydrus, this presentation will also focus on the process of creating the Python Package and why we think it is worthwhile for the hydrologic community to interface existing (older) code with newer programming languages popular in the hydrological scientific community.

References
[1] Šimůnek, J. and M. Th. van Genuchten (2008) Modeling nonequilibrium flow and transport with HYDRUS, Vadose Zone Journal.

How to cite: Collenteur, R., Vremec, M., and Brunetti, G.: Interfacing FORTAN Code with Python: an example for the Hydrus-1D model, EGU General Assembly 2020, Online, 4–8 May 2020, EGU2020-15377, https://doi.org/10.5194/egusphere-egu2020-15377, 2020.

Displays

Display file