Climate change has proved to be both a boon and a bane for agriculture in India.