Extreme weather events, such as heatwaves, droughts, and excess rainfall, are a major cause of crop yield losses and food insecurity worldwide. Statistical or process-based crop models can be used to quantify how yields will respond to extreme weather and future climate change.