Proof-of-concept: Using ChatGPT to Translate and Modernize an Earth System Model from Fortran to Python/JAX
Not on the map. Why?
Abstract (arXiv)
Earth system models (ESMs) are vital for understanding past, present, and future climate, but they suffer from legacy technical infrastructure. ESMs are primarily implemented in Fortran, a language that poses a high barrier of entry for early career scientists and lacks a GPU runtime, which has become essential for continued advancement as GPU power increases and CPU scaling slows. Fortran also lacks differentiability - the capacity to differentiate through numerical code - which enables hybrid models that integrate machine learning methods. Converting an ESM from Fortran to Python/JAX could resolve these issues. This work presents a semi-automated method for translating individual model components from Fortran to Python/JAX using a large language model (GPT-4). By translating the photosynthesis model from the Community Earth System Model (CESM), we demonstrate that the Python/JAX version results in up to 100x faster runtimes using GPU parallelization, and enables parameter estimation via automatic differentiation. The Python code is also easy to read and run and could be used by instructors in the classroom. This work illustrates a path towards the ultimate goal of making climate models fast, inclusive, and differentiable.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Feb 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025Can Theoretical Physics Research Benefit from Language Agents?cited by 9
- 2026Systematic LLM Translation of Legacy Scientific Code to Differentiable Frameworks: Application to a Land Surface Modelcited by 2
- 2026ADDA: a Modular Framework for Representing, Simulating and Assimilating Dynamics with End-to-end Differentiabilitycited by 1
- 2025Parameter estimation for land-surface models using Neural Physicscited by 0
- 2026A Fortran General-Purpose Transpiler: Proof of Conceptcited by 0
- 2026ADDA: a Modular Framework for Representing, Simulating and Assimilating Dynamics with End-to-end Differentiability24 Aug 2026
- 2026A Fortran General-Purpose Transpiler: Proof of Concept31 Jul 2026
- 2026Systematic LLM Translation of Legacy Scientific Code to Differentiable Frameworks: Application to a Land Surface Model4 Jun 2026
- 2025Can Theoretical Physics Research Benefit from Language Agents?6 Jun 2025
- 2025Parameter estimation for land-surface models using Neural Physics5 May 2025