R scripts for processing CMIP5 data