Published August 28, 2026 | Version v1

Python training and model code used in "Learning the uncertain physics of weather and climate models"

Authors/Creators

Description

Code used to train and evaluate hybrid parameterizations in "Learning the uncertain physics of weather and climate models". 

The model training code is found in the rnn subdirectory, highlights: 

  • rnn/models/models_phys.py: Physics-incorporating PyTorch model, highly configurable 
  • rnn/models/physics_rad.py: Two-stream radiative transfer code written in PyTorch.
  • rnn/models/physics_rad_e3sm.py: Cloud optics kernels adapted from E3SM Fortran code (with Claude's help) 
  • rnn/train_rnn_rollout_torchscript_hydra.py:  Training script.
  • rnn/submit.sh Example job submission script for training a hybrid model using pre-existing gas optics.

Files

Files (900.1 MB)

Name Size
md5:aed81a51d84a204554a58346af7bf682
900.1 MB Download