Changeset 24 for trunk/src/indice_flore


Ignore:
Timestamp:
01/07/09 16:49:58 (15 years ago)
Author:
pinsard
Message:

correction of usage of print function, fix side effect of load function

Location:
trunk/src/indice_flore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/indice_flore/time_serie_histog.m

    r23 r24  
    2727% on ouvre le fichier 
    2828status=load('occu.txt'); 
     29occu=status; 
     30clear status; 
    2931 
    3032% on reorganise le fichier de type de temps (jours,annees,cluster) 
     
    147149    if a==1; 
    148150       bar(jour,diff,'r'); 
    149 c=[1 0.55 0]; 
    150 bar(jour,diff),colormap(c); 
     151       c=[1 0.55 0]; 
     152       bar(jour,diff),colormap(c); 
    151153    elseif a==2; 
    152154       bar(jour,diff,'g'); 
     
    155157    else 
    156158       bar(jour,diff,'r'); 
    157     end 
     159    end; 
    158160    set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 
    159161    set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); 
     
    169171       title('Blocking','Fontsize',8,'Fontname','Arial'); 
    170172    end; 
    171 end 
     173end; 
    172174 
    173175figure(1); 
    174 status=print('-depsc2','time_serie_type_tps_pb.eps'); 
     176print('-depsc2','time_serie_type_tps_pb.eps'); 
  • trunk/src/indice_flore/time_serie_histog3.m

    r23 r24  
    2121 
    2222for a=1:3538; 
    23    ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 
     23    ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 
    2424end; 
    2525ind_olr=reshape(ind_olr,122,29); 
     
    2828% on ouvre le fichier 
    2929status=load('occu.txt'); 
     30occu=status; 
     31clear status; 
    3032 
    3133% on reorganise le fichier de type de temps (jours,annees,cluster) 
     
    4446 
    4547% boucle sur les annees 
    46 for a=1:29 
     48for a=1:29; 
    4749   clear delta; 
    4850   delta=zeros(122,1); 
    4951   % boucle sur les jours 
    50    for b=1:122 
     52   for b=1:122; 
    5153        if b>1; 
    5254            delta(b)=ind_olr(b,a)-ind_olr(b-1,a); 
     
    5557   for b=1:122; 
    5658      % 1ere condition (laisser une marge de 10) 
    57       if (b>11 && b<112); 
     59      if (b>11 && b<112) 
    5860%        condition 1 on est a un maximum deltas apres sont negetifs et 
    5961%             delta avant postifs 
     
    218220       y=type_temps_compomax(1:sizemax,a,b); 
    219221       student1(a,b)=ttest(x,y); 
    220     end 
    221 end 
    222  
    223  
     222    end; 
     223end; 
    224224 
    225225% on fait la somme des types de temps sur toute la periode de temps 
     
    256256           table_ttest(a,b)=NaN; 
    257257        end; 
    258     end 
    259 end 
     258    end; 
     259end; 
    260260for a=1:4; 
    261261    subplot(2,2,a); 
     
    280280       hold on; 
    281281       plot(jour,diff2,'k*'); 
    282     end 
     282    end; 
    283283    set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 
    284284    set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); 
     
    294294       title('Frequence Blocking (filtre PB) Differences min - max  Seuil 1.5','Fontsize',8,'Fontname','Arial'); 
    295295    end; 
    296 end 
     296end; 
    297297 
    298298figure(1); 
    299 status=print('-depsc2','time_serie_type_tps_pb.eps'); 
     299print('-depsc2','time_serie_type_tps_pb.eps'); 
  • trunk/src/indice_flore/time_serie_histog3_max_moy.m

    r23 r24  
    2424 
    2525for a=1:3538; 
    26    ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 
     26    ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 
    2727end; 
    2828ind_olr=reshape(ind_olr,122,29); 
     29 
    2930%%%%%%%%%%%% FICHIER TYPE DE TEMPS 
    3031% on ouvre le fichier 
    3132status=load('occu.txt'); 
     33occu=status; 
     34clear status; 
    3235 
    3336% on reorganise le fichier de type de temps (jours,annees,cluster) 
     
    4649 
    4750% boucle sur les annees 
    48 for a=1:29 
     51for a=1:29; 
    4952   clear delta; 
    5053   delta=zeros(122,1); 
    5154   % boucle sur les jours 
    52    for b=1:122 
     55   for b=1:122; 
    5356        if b>1; 
    5457            delta(b)=ind_olr(b,a)-ind_olr(b-1,a); 
     
    223226       y=type_temps_compomax(1:sizemax,a,b); 
    224227       student1(a,b)=ttest(x,y); 
    225     end 
    226 end 
    227  
     228    end; 
     229end; 
    228230 
    229231% on fait la somme des types de temps sur toute la periode de temps 
     
    258260    for b=1:4 
    259261       kara_diff(a,b)=-kara_max(a,b)+kara_moy(b); 
    260     end 
    261 end 
     262    end; 
     263end; 
    262264 
    263265table_ttest=zeros(21,4); 
     
    269271           table_ttest(a,b)=NaN; 
    270272        end; 
    271     end 
    272 end 
     273    end; 
     274end; 
    273275 
    274276for a=1:4; 
     
    282284       hold on; 
    283285       plot(jour,diff2,'k*'); 
    284      elseif a==2; 
     286    elseif a==2; 
    285287       bar(jour,diff,'g'); 
    286         hold on; 
    287         plot(jour,diff2,'k*'); 
     288       hold on; 
     289       plot(jour,diff2,'k*'); 
    288290    elseif a==3; 
    289291       bar(jour,diff,'b'); 
     
    294296       hold on; 
    295297       plot(jour,diff2,'k*'); 
    296     end 
     298    end; 
    297299    set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 
    298300    set (gca,'YTick',[-20:5:20],'YTickLabel',[-20:5:20],'fontname','Arial','fontsize',6); 
     
    308310       title('Blocking','Fontsize',8,'Fontname','Arial'); 
    309311    end; 
    310 end 
     312end; 
    311313 
    312314figure(1); 
    313 status=print('-depsc2','time_serie_type_tps_max_moy_pb.eps'); 
     315print('-depsc2','time_serie_type_tps_max_moy_pb.eps'); 
  • trunk/src/indice_flore/time_serie_histog3_min_moy.m

    r23 r24  
    2525for a=1:3538; 
    2626    ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 
    27 end 
     27end; 
    2828ind_olr=reshape(ind_olr,122,29); 
    2929 
     
    3131% on ouvre le fichier 
    3232status=load('occu.txt'); 
     33occu=status; 
     34clear status; 
    3335 
    3436% on reorganise le fichier de type de temps (jours,annees,cluster) 
     
    5860   for b=1:122; 
    5961      % 1ere condition (laisser une marge de 10) 
    60       if (b>11 && b<112); 
     62      if (b>11 && b<112) 
    6163%        condition 1 on est a un maximum deltas apres sont negetifs et 
    6264%             delta avant postifs 
     
    239241    for b=1:4 
    240242       kara_diff(a,b)=kara_min(a,b)-kara_moy(b); 
    241     end 
    242 end 
     243    end; 
     244end; 
    243245 
    244246for a=1:4; 
     
    256258    else 
    257259       bar(jour,diff,'r'); 
    258     end 
     260    end; 
    259261    set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 
    260262    set (gca,'YTick',[-20:5:20],'YTickLabel',[-20:5:20],'fontname','Arial','fontsize',6); 
     
    270272       title('Blocking','Fontsize',8,'Fontname','Arial'); 
    271273    end; 
    272 end 
     274end; 
    273275 
    274276figure(1); 
    275 status=print('-depsc2','time_serie_type_tps_min_moy_pb.eps'); 
     277print('-depsc2','time_serie_type_tps_min_moy_pb.eps'); 
Note: See TracChangeset for help on using the changeset viewer.