Adaptation to climate change in an agricultural landscape in the