Crop diversification and irrigation help farmers produce more, even as they face threats of climate change.