EGU26-21175, updated on 14 Mar 2026
https://doi.org/10.5194/egusphere-egu26-21175
EGU General Assembly 2026
© Author(s) 2026. This work is distributed under
the Creative Commons Attribution 4.0 License.
Oral | Tuesday, 05 May, 16:50–17:00 (CEST)
 
Room -2.33
A Python Dynamical Core for Numerical Weather Prediction
Daniel Hupp1, Mauro Bianco3, Anurag Dipankar2, Till Ehrengruber2, Nicoletta Farabullini2, Abishek Gopal2, Enrique Gonzalez Paredes3, Samuel Kellerhals2, Xavier Lapillonne1, Magdalena Luz2, Christoph Müller1, Carlos Osuna1, Christina Schnadt2, William Sawyer3, Hannes Vogt3, and Yilu Chen2
Daniel Hupp et al.
  • 1MeteoSwiss, , Zurich, Switzerland (daniel.hupp@meteoswiss.ch)
  • 2C2SM, ETH Zurich, Zurich, Switzerland
  • 3CSCS, ETH Zurich, Zurich, Switzerland

MeteoSwiss uses the ICON model to produce high-resolution weather forecasts at kilometre scale, with GPU support enabled through an OpenACC-based Fortran implementation. While effective, this approach limits portability, maintainability, and development flexibility. Within the EXCLAIM project, we focus on the dynamical core of the model—responsible for approximately 55% of the total runtime—and explore alternatives based on a domain-specific Python framework. In particular, we reimplemented the computational stencils using GT4Py and integrated them into the existing Fortran codebase, enabling the partial replacement of key components. This hybrid approach aims to improve developer productivity and code adaptability while preserving performance. In this contribution, we present our strategy for developing software for a weather and climate model involving multiple institutions and stakeholders. We present several optimisation techniques and compare the performance of the new implementation with the original OpenACC version. Our results show improved computational efficiency alongside a substantial improvement in the development workflow. Finally, we discuss the practical challenges of integrating Python components into operational numerical weather prediction systems.

How to cite: Hupp, D., Bianco, M., Dipankar, A., Ehrengruber, T., Farabullini, N., Gopal, A., Gonzalez Paredes, E., Kellerhals, S., Lapillonne, X., Luz, M., Müller, C., Osuna, C., Schnadt, C., Sawyer, W., Vogt, H., and Chen, Y.: A Python Dynamical Core for Numerical Weather Prediction, EGU General Assembly 2026, Vienna, Austria, 3–8 May 2026, EGU26-21175, https://doi.org/10.5194/egusphere-egu26-21175, 2026.