fv3gfs-wrapper: a Python wrapper of the FV3GFS atmospheric model
Open Access
- 16 July 2021
- journal article
- research article
- Published by Copernicus GmbH in Geoscientific Model Development
- Vol. 14 (7) , 4401-4409
Abstract
Simulation software in geophysics is traditionally written in Fortran or C++ due to the stringent performance requirements these codes have to satisfy. As a result, researchers who use high-productivity languages for exploratory work often find these codes hard to understand, hard to modify, and hard to integrate with their analysis tools. fv3gfs-wrapper is an open-source Python-wrapped version of the NOAA (National Oceanic and Atmospheric Administration) FV3GFS (Finite-Volume Cubed-Sphere Global Forecast System) global atmospheric model, which is coded in Fortran. The wrapper provides simple interfaces to progress the Fortran main loop and get or set variables used by the Fortran model. These interfaces enable a wide range of use cases such as modifying the behavior of the model, introducing online analysis code, or saving model variables and reading forcings directly to and from cloud storage. Model performance is identical to the fully compiled Fortran model, unless routines to copy the state in and out of the model are used. This copy overhead is well within an acceptable range of performance and could be avoided with modifications to the Fortran source code. The wrapping approach is outlined and can be applied similarly in other Fortran models to enable more productive scientific workflows.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Array programming with NumPyNature, 2020
- f90wrap: an automated tool for constructing deep Python interfaces to modern Fortran codesJournal of Physics: Condensed Matter, 2020
- The Common Community Physics Package (CCPP): bridging the gap between research and operations to improve U.S. numerical weather prediction capabilities2020
- Spatially Extended Tests of a Neural Network Parametrization Trained by Coarse‐GrainingJournal of Advances in Modeling Earth Systems, 2019
- nbodykit2017
- A Survey of Recent Trends in Testing Concurrent Software SystemsIEEE Transactions on Software Engineering, 2017
- A Two-Way Nested Global-Regional Dynamical Core on the Cubed-Sphere GridMonthly Weather Review, 2013
- GPAW - massively parallel electronic structure calculations with Python-based softwareProcedia Computer Science, 2011
- qtcm 0.1.2: a Python implementation of the Neelin-Zeng Quasi-Equilibrium Tropical Circulation ModelGeoscientific Model Development, 2009
- MPI for Python: Performance improvements and MPI-2 extensionsJournal of Parallel and Distributed Computing, 2008