An assessment of the effects of climatic change on agriculture