code and plots for raster correlations