Climate change is transforming agriculture worldwide, with shifting weather patterns wreaking havoc on production systems.