Adapting to the effects of climate change