Changeset 42


Ignore:
Timestamp:
09/21/09 15:05:35 (15 years ago)
Author:
pinsard
Message:

usage of contour instead of contoutf when octave 3.2.2 is running

Location:
trunk/RESULTATS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/RESULTATS/carteetstd_SST.m

    r29 r42  
    7777% sous octave : é se transforme en o barré. 
    7878% 
     79% - fplod 2009-09-21T12:59:35Z aedon.locean-ipsl.upmc.fr (Darwin) 
     80% 
     81%   *  octave 3.2.2 line 0: Internal error : unknown tic type 
     82% 
    7983% TODO 
    8084% ==== 
     
    8286% improve description 
    8387% 
     88% is there any way to call worldmap only once or at least read coast.m only 
     89% once 
     90% 
    8491% EVOLUTIONS 
    8592% ========== 
    8693% 
    8794% $Id$ 
     95% 
     96% - fplod 2009-09-21T12:12:06Z aedon.locean-ipsl.upmc.fr (Darwin) 
     97%  
     98%   * octave 3.2.2 contourf problem is not solved (see KNOWN PROBLEMS) but a 
     99%     workaround allows (``contour`` instead of ``contourf``) to run this 
     100%     script till end. 
    88101% 
    89102% - fplod 2009-08-26T09:56:51Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    209222  end 
    210223  z=squeeze(tab_mens(:,:,iplot)); 
    211   contourf(x,y,z,lev) 
     224  if (run_octave == 0) 
     225   contourf(x,y,z,lev) 
     226  else 
     227   switch OCTAVE_VERSION 
     228    case {'3.0.2','3.0.5'} 
     229     contourf(x,y,z,lev) 
     230    case {'3.2.2'} 
     231     contour(x,y,z,lev) 
     232    otherwise 
     233     contourf(x,y,z,lev) 
     234   end 
     235  end 
    212236  caxis(clip_lev) 
    213237  hold on 
     
    279303  end 
    280304  z=squeeze(tab_an(:,:,iplot)); 
    281   contourf(x,y,z,lev) 
     305  if (run_octave == 0) 
     306   contourf(x,y,z,lev) 
     307  else 
     308   switch OCTAVE_VERSION 
     309    case {'3.0.2','3.0.5'} 
     310     contourf(x,y,z,lev) 
     311    case {'3.2.2'} 
     312     contour(x,y,z,lev) 
     313    otherwise 
     314     contourf(x,y,z,lev) 
     315   end 
     316  end 
    282317  caxis(clip_lev) 
    283318  hold on 
     
    347382end 
    348383z=std_mens; 
    349 contourf(x,y,z,lev) 
     384if (run_octave == 0) 
     385 contourf(x,y,z,lev) 
     386else 
     387 switch OCTAVE_VERSION 
     388  case {'3.0.2','3.0.5'} 
     389   contourf(x,y,z,lev) 
     390  case {'3.2.2'} 
     391   contour(x,y,z,lev) 
     392  otherwise 
     393   contourf(x,y,z,lev) 
     394 end 
     395end 
    350396caxis([clip_lev]) 
    351397hold on 
    352398whorldmap 
    353   % limites geographies et labels de longitude et de latitude 
    354   ylim([geo(3) geo(4)]) 
    355   xlim([geo(1) geo(2)]) 
    356   set(gca, 'Xtick', xti, 'Ytick', yti) 
    357   if (run_octave == 0) 
    358    [longstr, latstr] = contlab(xti, yti); 
    359    set(gca, 'Xticklabel', longstr, 'Yticklabel', latstr) 
    360   end; 
    361   xlabel('longitude') 
    362   ylabel('latitude') 
     399% limites geographies et labels de longitude et de latitude 
     400ylim([geo(3) geo(4)]) 
     401xlim([geo(1) geo(2)]) 
     402set(gca, 'Xtick', xti, 'Ytick', yti) 
     403if (run_octave == 0) 
     404 [longstr, latstr] = contlab(xti, yti); 
     405 set(gca, 'Xticklabel', longstr, 'Yticklabel', latstr) 
     406end; 
     407xlabel('longitude') 
     408ylabel('latitude') 
    363409 
    364410title('ecart-type mensuel moyen') 
     
    384430subplot(2,2,2) 
    385431z=std_an; 
    386 contourf(x,y,z,lev) 
     432if (run_octave == 0) 
     433 contourf(x,y,z,lev) 
     434else 
     435 switch OCTAVE_VERSION 
     436  case {'3.0.2','3.0.5'} 
     437   contourf(x,y,z,lev) 
     438  case {'3.2.2'} 
     439   contour(x,y,z,lev) 
     440  otherwise 
     441   contourf(x,y,z,lev) 
     442 end 
     443end 
    387444caxis(clip_lev) 
    388445hold on 
    389446whorldmap 
    390   % limites geographies et labels de longitude et de latitude 
    391   ylim([geo(3) geo(4)]) 
    392   xlim([geo(1) geo(2)]) 
    393   set(gca, 'Xtick', xti, 'Ytick', yti) 
    394   if (run_octave == 0) 
    395    [longstr, latstr] = contlab(xti, yti); 
    396    set(gca, 'Xticklabel', longstr, 'Yticklabel', latstr) 
    397   end; 
    398   xlabel('longitude') 
    399   ylabel('latitude') 
     447% limites geographies et labels de longitude et de latitude 
     448ylim([geo(3) geo(4)]) 
     449xlim([geo(1) geo(2)]) 
     450set(gca, 'Xtick', xti, 'Ytick', yti) 
     451if (run_octave == 0) 
     452 [longstr, latstr] = contlab(xti, yti); 
     453 set(gca, 'Xticklabel', longstr, 'Yticklabel', latstr) 
     454end; 
     455xlabel('longitude') 
     456ylabel('latitude') 
    400457 
    401458title('écart-type interannuel') 
     
    409466  colorbar('East') %colorbar par defaut 
    410467end; 
    411  
    412  
    413468 
    414469% sauvegarde de la figure 
  • trunk/RESULTATS/eof_NCEP_an.m

    r29 r42  
    8383% propres. 
    8484% 
     85% KNOWN PROBLEMS 
     86% ============== 
     87% 
     88% - fplod 2009-09-21T12:58:38Z aedon.locean-ipsl.upmc.fr (Darwin) 
     89% 
     90%   *  octave 3.2.2 line 0: Internal error : unknown tic type 
     91% 
    8592% EVOLUTIONS 
    8693% ========== 
    8794% 
    8895% $Id$ 
     96% 
     97% - fplod 2009-09-21T12:57:36Z aedon.locean-ipsl.upmc.fr (Darwin) 
     98% 
     99%   * octave 3.2.2 contourf problem is not solved but a 
     100%     workaround allows (``contour`` instead of ``contourf``) to run this 
     101%     script till end. 
    89102% 
    90103% - fplod 2009-08-26T10:26:35Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    320333   end 
    321334   z=squeeze(TABEOF(:,:,i)); 
    322    contourf(x,y,z,lev); 
     335   if (run_octave == 0) 
     336    contourf(x,y,z,lev); 
     337   else 
     338    switch OCTAVE_VERSION 
     339     case {'3.0.2','3.0.5'} 
     340      contourf(x,y,z,lev); 
     341     case {'3.2.2'} 
     342      contour(x,y,z,lev); 
     343     otherwise 
     344      contourf(x,y,z,lev); 
     345     end 
     346   end 
    323347   caxis(clip_lev); 
    324348   hold on 
Note: See TracChangeset for help on using the changeset viewer.