clear;
ms=xlsread('SNCorrelation.xls','Barkedji');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)
clear;
ms=xlsread('SNCorrelation.xls','Diawara');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)
clear
ms=xlsread('SNCorrelation.xls','Goumel');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Mpal');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Ndioun');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Oubowol');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Ourossogui');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Rainabe I');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Ranerou');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Sare Bourang');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Sare Hamidou');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

clear
ms=xlsread('SNCorrelation.xls','Tille Boubacar');
nx=size(ms,1);
ts=ms(:,2);
ind=find(ms(:,3)~=-9);
[r1,h1]=corrcoef(ts(ind),ms(ind,3));
ind=find(ms(:,4)~=-999);
[r2,h2]=corrcoef(ts(ind),ms(ind,4));
ind=find(ms(:,5)~=-999);
[r3,h3]=corrcoef(ts(ind),ms(ind,5));
ind=find(ms(:,6)~=-9999);
[r4,h4]=corrcoef(ts(ind),ms(ind,6));
rain=r1(1,2)
rainh=h1(1,2)
ARC=r2(1,2)
ARCh=h2(1,2)
CMAP=r3(1,2)
CMAPh=h3(1,2)
NDVI=r4(1,2)
NDVIh=h4(1,2)

