Changeset 15 for trunk/src/indice_flore
- Timestamp:
- 12/23/08 10:36:27 (15 years ago)
- Location:
- trunk/src/indice_flore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/indice_flore/time_serie_histog.m
r10 r15 39 39 end; 40 40 for b=1:122; 41 if (b>10 & b<112); % 1ere condition (laisser une marge de 10)41 if (b>10 && b<112); % 1ere condition (laisser une marge de 10) 42 42 % condition 1 on est a un maximum deltas apres sont negetifs et 43 43 % delta avant postifs 44 if (delta(b+1)<0 & delta(b)<0 & delta(b-1)>0 & delta(b-2)>0& ind_olr(b,a)>ind_olr2);44 if (delta(b+1)<0 && delta(b)<0 && delta(b-1)>0 && delta(b-2)>0 && ind_olr(b,a)>ind_olr2); 45 45 46 46 compteurmax=compteurmax+1; … … 66 66 type_temps_compomax(compteurmax,20,:)=occu_type_tps(b+9,a,:); 67 67 type_temps_compomax(compteurmax,21,:)=occu_type_tps(b+10,a,:); 68 elseif (delta(b+1)>0 & delta(b)>0 & delta(b-1)<0 & delta(b-2)<0& ind_olr(b,a)<(-ind_olr2));68 elseif (delta(b+1)>0 && delta(b)>0 && delta(b-1)<0 && delta(b-2)<0 && ind_olr(b,a)<(-ind_olr2)); 69 69 compteurmin=compteurmin+1; 70 70 type_temps_compomin(compteurmin,1,:)=occu_type_tps(b-10,a,:); … … 112 112 113 113 % on traduit le nbre d occurence en frequences relatives 114 kara_min=zeros(21,4); 115 kara_max=zeros(21,4); 114 116 for a=1:21; 115 117 for b=1:4; … … 139 141 set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); 140 142 axis([-10 10 -40 40]); 141 set (gca,'tickDir','out');143 set (gca,'tickDir','out'); 142 144 if a==1; 143 145 title('Atl low','Fontsize',8,'Fontname','Arial'); … … 146 148 elseif a==3; 147 149 title('NAO-','Fontsize',8,'Fontname','Arial'); 148 else ;150 else 149 151 title('Blocking','Fontsize',8,'Fontname','Arial'); 150 152 end; -
trunk/src/indice_flore/time_serie_histog3.m
r10 r15 44 44 end; 45 45 for b=1:122; 46 if (b>11 & b<112); % 1ere condition (laisser une marge de 10)46 if (b>11 && b<112); % 1ere condition (laisser une marge de 10) 47 47 % condition 1 on est a un maximum deltas apres sont negetifs et 48 48 % delta avant postifs 49 if (delta(b+1)<0 & delta(b)>0& ind_olr(b,a)>1.5);49 if (delta(b+1)<0 && delta(b)>0 && ind_olr(b,a)>1.5); 50 50 51 51 compteurmax=compteurmax+1; … … 117 117 118 118 119 elseif (delta(b+1)>0 & delta(b)<0& ind_olr(b,a)<-1.5);119 elseif (delta(b+1)>0 && delta(b)<0 && ind_olr(b,a)<-1.5); 120 120 compteurmin=compteurmin+1; 121 121 type_temps_compomin(1,compteurmin,1,:)=occu_type_tps(b-10,a,:); … … 197 197 type_temps_compomin=reshape(type_temps_compomin,sizemin,21,4); 198 198 type_temps_compomax=reshape(type_temps_compomax,sizemax,21,4); 199 compteurmin 200 compteurmax 199 disp(['iii : compteurmin =', int2str(compteurmin)]); 200 disp(['iii : compteurmax =', int2str(compteurmax)]); 201 201 202 202 % on fait le test de Student … … 226 226 227 227 % on traduit le nbre d occurence en frequences relatives 228 kara_min=zeros(21,4); 229 kara_max=zeros(21,4); 228 230 for a=1:21; 229 231 for b=1:4; … … 240 242 if student1(a,b)==1; 241 243 table_ttest(a,b)=kara_diff(a,b); 242 else ;244 else 243 245 table_ttest(a,b)=NaN; 244 246 end; … … 266 268 set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); 267 269 axis([-10 10 -40 40]); 268 set (gca,'tickDir','out');270 set (gca,'tickDir','out'); 269 271 if a==1; 270 272 title('Frequence Atl Low (filtre PB) Differences min - max Seuil 1.5','Fontsize',8,'Fontname','Arial'); … … 273 275 elseif a==3; 274 276 title('Frequence NAO- (filtre PB) Differences min - max Seuil 1.5','Fontsize',8,'Fontname','Arial'); 275 else ;277 else 276 278 title('Frequence Blocking (filtre PB) Differences min - max Seuil 1.5','Fontsize',8,'Fontname','Arial'); 277 279 end; -
trunk/src/indice_flore/time_serie_histog3_max_moy.m
r10 r15 45 45 end; 46 46 for b=1:122; 47 if (b>11 & b<112); % 1ere condition (laisser une marge de 10)47 if (b>11 && b<112); % 1ere condition (laisser une marge de 10) 48 48 % condition 1 on est a un maximum deltas apres sont negetifs et 49 49 % delta avant postifs 50 if (delta(b+1)<0 & delta(b)>0& ind_olr(b,a)>1.5);50 if (delta(b+1)<0 && delta(b)>0 && ind_olr(b,a)>1.5); 51 51 52 52 compteurmax=compteurmax+1; … … 118 118 119 119 120 elseif (delta(b+1)>0 & delta(b)<0& ind_olr(b,a)<-1.5);120 elseif (delta(b+1)>0 && delta(b)<0 && ind_olr(b,a)<-1.5); 121 121 compteurmin=compteurmin+1; 122 122 type_temps_compomin(1,compteurmin,1,:)=occu_type_tps(b-10,a,:); … … 202 202 type_temps_moy=reshape(occu_type_tps,3538,4); 203 203 204 compteurmin 205 compteurmax 204 disp(['iii : compteurmin =', int2str(compteurmin)]); 205 disp(['iii : compteurmax =', int2str(compteurmax)]); 206 206 207 207 student1=zeros(21,4); … … 229 229 230 230 % on traduit le nbre d occurence en frequences relatives 231 kara_min=zeros(21,4); 232 kara_max=zeros(21,4); 233 kara_moy=zeros(4); 234 231 235 for a=1:21; 232 236 for b=1:4; … … 250 254 if student1(a,b)==1; 251 255 table_ttest(a,b)=kara_diff(a,b); 252 else ;256 else 253 257 table_ttest(a,b)=NaN; 254 258 end; … … 277 281 set (gca,'YTick',[-20:5:20],'YTickLabel',[-20:5:20],'fontname','Arial','fontsize',6); 278 282 axis([-10 10 -20 20]); 279 set (gca,'tickDir','out');283 set (gca,'tickDir','out'); 280 284 if a==1; 281 285 title('Atl low','Fontsize',8,'Fontname','Arial'); … … 284 288 elseif a==3; 285 289 title('NAO-','Fontsize',8,'Fontname','Arial'); 286 else ;290 else 287 291 title('Blocking','Fontsize',8,'Fontname','Arial'); 288 292 end; -
trunk/src/indice_flore/time_serie_histog3_min_moy.m
r10 r15 46 46 end; 47 47 for b=1:122; 48 if (b>11 & b<112); % 1ere condition (laisser une marge de 10)48 if (b>11 && b<112); % 1ere condition (laisser une marge de 10) 49 49 % condition 1 on est a un maximum deltas apres sont negetifs et 50 50 % delta avant postifs 51 if (delta(b+1)<0 & delta(b)>0& ind_olr(b,a)>1.5);51 if (delta(b+1)<0 && delta(b)>0 && ind_olr(b,a)>1.5); 52 52 53 53 compteurmax=compteurmax+1; … … 119 119 120 120 121 elseif (delta(b+1)>0 & delta(b)<0& ind_olr(b,a)<-1.5);121 elseif (delta(b+1)>0 && delta(b)<0 && ind_olr(b,a)<-1.5); 122 122 compteurmin=compteurmin+1; 123 123 type_temps_compomin(1,compteurmin,1,:)=occu_type_tps(b-10,a,:); … … 195 195 type_temps_compomax=reshape(type_temps_compomax,240,21,4); 196 196 type_temps_moy=reshape(occu_type_tps,3538,4); 197 compteurmin 198 compteurmax 197 disp(['iii : compteurmin =', int2str(compteurmin)]); 198 disp(['iii : compteurmax =', int2str(compteurmax)]); 199 199 % on fait la somme des types de temps sur toute la periode de temps 200 200 % on obtent un tableau de la forme (jours-avant-apres,cluster) … … 211 211 212 212 % on traduit le nbre d occurence en frequences relatives 213 kara_min=zeros(21,4); 214 kara_max=zeros(21,4); 215 kara_moy=zeros(4); 213 216 for a=1:21; 214 217 for b=1:4; … … 244 247 set (gca,'YTick',[-20:5:20],'YTickLabel',[-20:5:20],'fontname','Arial','fontsize',6); 245 248 axis([-10 10 -20 20]); 246 set (gca,'tickDir','out');249 set (gca,'tickDir','out'); 247 250 if a==1; 248 251 title('Atl low','Fontsize',8,'Fontname','Arial'); … … 251 254 elseif a==3; 252 255 title('NAO-','Fontsize',8,'Fontname','Arial'); 253 else ;256 else 254 257 title('Blocking','Fontsize',8,'Fontname','Arial'); 255 258 end;
Note: See TracChangeset
for help on using the changeset viewer.