Search NASASearch

DOE OSTI · 2514350

A Fortran-Python Interface for Integrating Machine Learning Parameterization into Earth System Models

Abstract

Parameterizations in Earth System Models (ESMs) are subject to biases and uncertainties arising from subjective empirical assumptions and incomplete understanding of the underlying physical processes. Recently, the growing representational capability of machine learning (ML) in solving complex problems has spawned immense interests in climate science applications. Specifically, ML-based parameterizations have been developed to represent convection, radiation and microphysics processes in ESMs by learning from observations or high-resolution simulations, which have the potential to improve the accuracies and alleviate the uncertainties. Previous works have developed some surrogate models for these processes using ML. These surrogate models need to be coupled with the dynamical core of ESMs to investigate the effectiveness and their performance in a coupled system. In this study, we present a novel Fortran-Python interface designed to seamlessly integrate ML parameterizations into ESMs. This interface showcases high versatility by supporting popular ML frameworks like PyTorch, TensorFlow, and Scikit-learn. We demonstrate the interface's modularity and reusability through two cases: a ML trigger function for convection parameterization and a ML wildfire model. We conduct a comprehensive evaluation of memory usage and computational overhead resulting from the integration of Python codes into the Fortran ESMs. By leveraging this flexible interface, ML parameterizations can be effectively developed, tested, and integrated into ESMs.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zhang, Tao [Brookhaven National Laboratory (BNL), Upton, NY (United States)] (ORCID:0000000257001966), Morcrette, Cyril [Exeter Met Office (United Kingdom); Univ. of Exeter (United Kingdom)] (ORCID:0000000242408472), Zhang, Meng [Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)], Lin, Wuyin [Brookhaven National Laboratory (BNL), Upton, NY (United States)], Xie, Shaocheng [Lawrence Livermore National Laboratory (LLNL), Livermore, CA (United States)] (ORCID:0000000189315145), Liu, Ye [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)] (ORCID:0000000151318412), Van Weverberg, Kwinten [Ghent Univ. (Belgium); Royal Meteorological Institute of Belgium (Belgium)] (ORCID:0000000253977320), Rodrigues, Joana [Exeter Met Office (United Kingdom)]. 2025-03-24. A Fortran-Python Interface for Integrating Machine Learning Parameterization into Earth System Models. https://doi.org/10.5194/gmd-2024-79

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related reports

Water4Energy Step-1 Band-M Ready-to-Train Samples for TVA Weeks-to-Years Prediction, Version 0

AI-ready Band-M (monthly) labelled training pack for the Water4Energy Genesis Task-1 project on weeks-to-years prediction of Tennessee Valley temperature and precipitation. The deposit includes leakage-aware issue-time samples (samples_M_v0.nc; N=486), train-only scalers, issue-time split table, supporting monthly panels, and Python generation scripts to recreate the pack from the companion Tier-1 raw observation collection (https://doi.org/10.13139/ORNLNCCS/3398576). Each sample pairs a 12-month lookback of teleconnection indices and SST box anomalies with TVA-mean ERA5 anomaly targets (t2m, tp, msl) at leads 1–3 months.

54 ENVIRONMENTAL SCIENCES

Multi-Angle Snowflake Camera, particle analysis

The c1 level data product for the Mutli-Angle Snowflake Camera contains snowflake fall speeds and particle size, among other analysis for images associated with each hydrometeor.

54 ENVIRONMENTAL SCIENCES

Multi-Angle Snowflake Camera, time bins

The c1 level data product for the Mutli-Angle Snowflake Camera contains snowflake fall speeds and particle size, among other analysis for images associated with each hydrometeor.

54 ENVIRONMENTAL SCIENCES