Python-Fortran Hybrid Programming to Fuse AI and Physical Models: Examples of AI-LDA in climate and weather models (Hf2pMDAv1.0)
Xianrui Zhu, Zikuan Lin, Shaoqing Zhang, Zebin Lu, Songhua Wu, Xiangyun Hou, Zhisheng Xiao, Zhicheng Ren, Jiangyu Li, Jing Xu, Yang Gao, Rixu Hao, Xiaolin Yu, Mingkui Li, Guangliang Liu
Abstract
AI provides an unprecedented opportunity for advancing physics numerical modeling including data assimilation, which is a highly efficient and critically-important tool for advancing our understanding on Earth system and its applications. At the same time, deep incorporation of AI and physical modeling can make great driving to advance AI by injecting it rich physics from long time physics-based modeling development. However, since such physics models are conventionally coded in Fortran and AI algorithms usually are conveniently designed in Python, difficulties exist to directly incorporate AI algorithms into physics models, vice versa. Here, based on the F2PY protocol, we have developed a procedure that implements an infrastructure which conveniently conducts Hf2pMDA to form a program entity so that AI algorithms and physical models can invoke mutually. As examples, within Hf2pMDA, a climate coupled data assimilation (CDA) system is naturally upgraded to a strongly CDA (SCDA) system, and a 1 km high-resolution weather DA system is conveniently implemented within a multi-layer downscaling model that has multiscale DA in different nesting layers. In the climate SCDA system, a coupled general circulation model (CGCM) and a multiscale filtering algorithm is integrated by a Python main controller (PMC) that calls Fortran CGCM components and Weakly-CDA modules as well as a data-trained SCDA algorithm by latent space autoencoder in Python. In the high-resolution weather DA system, the downscaled model consisting of traditional Fortran DA modules in all mother domains and Python AE DA algorithm in the central child domain is integrated by a PMC that organizes these components. With convenient realization of deep incorporation of any AI algorithm and physics model, the Hf2pMDA has a great potential to make progress on both AI and scientific modeling.
Create a lesson
Related papers
Is the Atmosphere Really Such a Good Blanket?
Slavoljub Mijovic
Application of the latent twins approach for clear sky retrieval from IASI observations
Michele Martinazzo, Cristina Sgattoni, Marco Menarini et al.
A Moisture-Vorticity Theory for the Boreal Summer Quasi-Biweekly Oscillation
Shubhrangshu Biswas, Jai Sukhatme, Bishakhdatta Gayen
Bridging short- and medium-range weather forecasting with machine learning
Timothy A. Smith, Mariah Pope, Sergey Frolov et al.
Detectability of Forced ENSO Changes under Global Warming: Insights from the Recharge Oscillator
Sooman Han, Jérôme Vialard, Alexey V. Fedorov et al.
When Does Forecast-Error Energy Grow Logistically in Geophysical Turbulence?
Malaquias Peña