Changeset 37
- Timestamp:
- 01/27/09 17:14:49 (15 years ago)
- Location:
- trunk/src/mode_sahelien
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mode_sahelien/carte_eof234_jjas_1025.m
r26 r37 1 1 % 2 3 %+ 4 % 5 % EVOLUTIONS 6 % =========== 7 % 8 % $Id$ 9 % 10 % - fplod 2009-01-27T14:47:28Z aedon.locean-ipsl.upmc.fr (Darwin) 11 % 12 % * replaced by carte_eof234_jjas_df.m 13 % 14 %- 2 15 3 16 clear; -
trunk/src/mode_sahelien/carte_eof234_jjas_1030.m
r30 r37 1 1 % 2 3 %+ 4 % 5 % EVOLUTIONS 6 % =========== 7 % 8 % $Id$ 9 % 10 % - fplod 2009-01-27T14:47:28Z aedon.locean-ipsl.upmc.fr (Darwin) 11 % 12 % * replaced by carte_eof234_jjas_df.m 13 % 14 %- 15 2 16 clear; 3 17 status=load('eof_1030_jjas.mat','C','L'); -
trunk/src/mode_sahelien/carte_eof234_jjas_df.m
r26 r37 1 % 2 3 clear; 4 status=load('eof_1025_jjas.mat','C','L'); 1 function carte_eof234_jjas_df(ndmin, ndmax) 2 % carte_eof234_jjas_df ++explication between ndmin days and ndmax days 3 4 %+ 5 % module 6 % ====== 7 % 8 % ++ 9 % 10 % DESCRIPTION 11 % =========== 12 % 13 % plot ++ from file eof_10-30d_jjas.mat 14 % 15 % EXAMPLES 16 % ======== 17 % 18 % Following line read eof_10-30d_jjas.mat, plot ++and produce a Postcript file 19 % resultats_eof_jjas_2006_10-30d.eps 20 % produce also carte_eofx_mode_sahel_10-30d.dat and 21 % carte_eofx_mode_sahel_10-30d.ctl (GRADS files) and vecteurs_eof_10-30d.txt. 22 % :: 23 % 24 % >> carte_eof234_jjas_df(10,30); 25 % 26 % SEE ALSO 27 % ======== 28 % 29 % olr_eof_1025.m_ 30 % 31 % .. _olr_eof_1025.m : olr_eof_1025.m.html 32 % 33 % reconstitution_1025.m_ 34 % 35 % .. _reconstitution_1025.m : reconstitution_1025.m.html 36 % 37 % time_serie_jjas_10_25.m_ 38 % 39 % .. _time_serie_jjas_10_25.m : time_serie_jjas_10_25.m.html 40 % 41 % sauvegrads.m_ 42 % 43 % .. _sauvegrads.m : sauvegrads.m.html 44 % 45 % TODO 46 % ==== 47 % 48 % improve description 49 % 50 % improve file pb 51 % 52 % use return function 53 % 54 % change filename of Postscript file because same as in carte_eof_ER_jjas_df.m 55 % 56 % directory for sauvegrads files 57 % 58 % control of sauvegrads call 59 % 60 % why ``-carte`` in contourf and sauvegrads instead of ``carte`` ? 61 % 62 % EVOLUTIONS 63 % ========== 64 % 65 % $Id$ 66 % 67 % - fplod 2009-01-27T14:49:51Z aedon.locean-ipsl.upmc.fr (Darwin) 68 % 69 % * created from carte_eof234_jjas_1025.m and carte_eof234_jjas_1030.m 70 % to replace both. 71 % 72 % Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 73 % 74 % * add sauvegrads on first EOF for homogenity 75 % 76 %- 77 78 79 global IRCAAM_ID; 80 global IRCAAM_OD; 81 82 if nargin==2 83 % ndmin must be lower than ndmax 84 if (ndmin > ndmax) 85 disp(['ndmin = ', int2str(ndmin)]); 86 disp(['ndmax = ', int2str(ndmax)]); 87 error('eee : ndmin must be lower than ndmax'); 88 end 89 else 90 usage='usage : carte_eof234_jjas_df(ndmin, ndmax)'; 91 disp(usage); 92 error('eee : wrong arguments numbers') 93 end 94 95 % ndmin and ndmax will be used in xx-yyd form in filenames 96 df = [int2str(ndmin),'-',int2str(ndmax),'d']; 97 clear ndmin; 98 clear ndmax; 99 100 101 fullfilename=[IRCAAM_ID,'eof_',df,'_jjas.mat']; 102 status=load(fullfilename,'C','L'); 103 clear fullfilename; 104 5 105 C=status.C; 6 106 L=status.L; … … 34 134 35 135 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 136 gradsname=['carte_eof1_mode_sahel_',df]; 137 sauvegrads(gradsname,-carte,[-30 2.5 -10 2.5]); 138 clear gradsname; 139 36 140 colorbar; 37 141 title('OLR EOF1','Fontsize',8); … … 65 169 carte(1,2)=0.2001; 66 170 67 contourf(lon,lat,carte,[-0.2:0.02:0.2],'LineStyle','none'); 171 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 172 gradsname=['carte_eof2_mode_sahel_',df]; 173 sauvegrads(gradsname,-carte,[-30 2.5 -10 2.5]); 174 clear gradsname; 68 175 colorbar; 69 176 … … 100 207 101 208 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 209 gradsname=['carte_eof3_mode_sahel_',df]; 210 sauvegrads(gradsname,-carte,[-30 2.5 -10 2.5]); 211 clear gradsname; 102 212 colorbar; 103 213 title('OLR EOF3','Fontsize',8); … … 133 243 134 244 contourf(lon,lat,-carte,[-0.2:0.02:0.2],'LineStyle','none'); 245 gradsname=['carte_eof4_mode_sahel_',df]; 246 sauvegrads(gradsname,-carte,[-30 2.5 -10 2.5]); 247 clear gradsname; 135 248 colorbar; 136 249 title('OLR EOF4','Fontsize',8); … … 154 267 155 268 bar(x,vecteurs,'LineStyle','none') 269 fullfilename=[IRCAAM_OD,'vecteurs_eof_',df,'.txt']; 270 save(fullfilename,'vecteurs','-ASCII'); 271 clear fullfilename; 272 156 273 axis([0.5 20.5 0 25]); 157 274 set (gca,'YTick',[0:5:25],'YTickLabel',[0:5:25],'fontname','Arial','fontsize',6); … … 159 276 set (gca,'tickDir','out'); 160 277 161 print('-depsc2','resultats_eof_jjas_2006_1025.eps'); 278 fullfilename=[IRCAAM_OD,'resultats_eof_jjas_2006_',df,'.eps']; 279 print('-depsc2',fullfilename); 280 clear fullfilename; -
trunk/src/mode_sahelien/carte_eof_jja_2006_1025.m
r26 r37 1 1 % 2 3 %+ 4 % 5 % EVOLUTIONS 6 % =========== 7 % 8 % $Id$ 9 % 10 % - fplod 2009-01-27T16:10:14Z aedon.locean-ipsl.upmc.fr (Darwin) 11 % 12 % * replaced by carte_eof_ER_jjas_df.m 13 % 14 %- 15 2 16 3 17 clear; -
trunk/src/mode_sahelien/carte_eof_jja_2006_2590.m
r26 r37 1 1 % 2 3 %+ 4 % 5 % EVOLUTIONS 6 % =========== 7 % 8 % $Id$ 9 % 10 % - fplod 2009-01-27T16:10:14Z aedon.locean-ipsl.upmc.fr (Darwin) 11 % 12 % * replaced by carte_eof_ER_jjas_df.m 13 % 14 %- 15 2 16 clear; 3 17 close all;
Note: See TracChangeset
for help on using the changeset viewer.