create function corMat and apply to reanalysis data