Changeset 48
- Timestamp:
- 02/02/09 15:04:40 (15 years ago)
- Location:
- trunk/src/SIMULS_IRCAAM
- Files:
-
- 10 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SIMULS_IRCAAM/carte_eof_df.m
r26 r48 1 % 2 3 clear; 4 status=load('eof_1030_ircaam.mat','C','L'); 1 function carte_eof_df(dataset,simulation,ndmin, ndmax) 2 % carte_eof_df ++explication between ndmin days and ndmax days 3 4 %+ 5 % module 6 % ====== 7 % 8 % ++ 9 % 10 % DESCRIPTION 11 % =========== 12 % 13 % From eof_arpege_\ *simulation*\ _ \ *ndmin*\ -\ *ndmax*\ d.mat 14 % and rlut_d.\ *simulation*\ .197106-09.nc, 15 % ``carte_eof_df`` compute ++. 16 % 17 % ``carte_eof_df`` plot ++. 18 % 19 % 1 Postscript file 20 % carte_arpege_\ *simulation*\ _ \ *ndmin*\ -\ *ndmax*\ d.eps are 21 % written. 22 % 23 % EXAMPLES 24 % ======== 25 % 26 % Following line read ``eof_arpege_AfNQIVIV_10-30d.mat`` and 27 % ``rlut_d.afNQIVIV.197106-09.nc``, 28 % compute ++, 29 % plot ++, 30 % write ``eof[12]_arpege_AfNQIVIV_10-30d`` and 31 % write ``carte_arpege_AfNQIVIV_10-30d.eps`` 32 % :: 33 % 34 % >> carte_eof_df('arpege','AfNQIVIV',10,30) 35 % 36 % SEE ALSO 37 % ======== 38 % 39 % eof_olr_ircaam_1030_as.m_ 40 % 41 % .. _eof_olr_ircaam_1030_as.m : eof_olr_ircaam_1030_as.m.html 42 % 43 % time_serie_eof_df.m_ 44 % 45 % .. _time_serie_eof_df.m : time_serie_eof_df.m.html 46 % 47 % TODO 48 % ==== 49 % 50 % improve description 51 % 52 % improve file pb 53 % 54 % use return function 55 % 56 % EVOLUTIONS 57 % ========== 58 % 59 % $Id$ 60 % 61 % - fplod 2009-02-02T13:45:57Z aedon.locean-ipsl.upmc.fr (Darwin) 62 % 63 % * created from carte_eof_ircaam_1030.m .m to replace it as well as 64 % carte_eof_ircaam_1030_as.m, carte_eof_ircaam_1030_ctl.m, 65 % carte_eof_ircaam_1030_ctl_clim.m, carte_eof_ircaam_1030_tr.m, 66 % carte_eof_ircaam_30100.m, carte_eof_ircaam_30100_as.m, 67 % carte_eof_ircaam_30100_ctl.m and carte_eof_ircaam_30100_tr.m 68 % 69 % Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 70 % Dataset ``arpege`` will be forced in output file names. 71 % 72 % Simulation name will be add to output file names (see parameters). 73 % 74 %- 75 76 global IRCAAM_ID; 77 global IRCAAM_OD; 78 79 if nargin==4 80 % dataset must be equal to arpege 81 if ~strcmp(dataset,'arpege') 82 disp(['dataset = ', dataset]); 83 error('eee : dataset must be equal to arpege'); 84 end 85 if strcmp(dataset,'arpege') 86 list_simulation={'AfNQIVIV','TrNQIVIV','AsNQIVIV','CtIV','CtCl'}; 87 end 88 switch simulation 89 case list_simulation 90 % ok 91 otherwise 92 disp(['simulation = ', simulation]); 93 disp(['list_simulation = ', mat2str(list_simulation)]); 94 error('eee : simulation must be equal to one of list_simulation'); 95 end 96 clear list_simulation; 97 % ndmin must be lower than ndmax 98 if (ndmin > ndmax) 99 disp(['ndmin = ', int2str(ndmin)]); 100 disp(['ndmax = ', int2str(ndmax)]); 101 error('eee : ndmin must be lower than ndmax'); 102 end 103 else 104 usage='usage : time_serie_jjas_df(dataset,simulation,ndmin, ndmax)'; 105 disp(usage); 106 error('eee : wrong arguments numbers') 107 end 108 109 % ndmin and ndmax will be used in xx-yyd form in filenames 110 df = [int2str(ndmin),'-',int2str(ndmax),'d']; 111 clear ndmin; 112 clear ndmax; 113 114 close all; 115 116 fullfilename=[IRCAAM_ID,'eof_',dataset,'_', simulation, '_', df, '.mat']; 117 status=load(fullfilename,'C','L'); 118 clear fullfilename; 119 5 120 C=status.C; 6 121 L=status.L; 7 122 clear status; 123 8 124 carte1=C(:,360); 9 10 carte=reshape(carte1,24,15); 11 carte=carte'; 12 13 clear carte1; 14 % defintion des lat et lon 15 ncload('rlut_d.AfNQIVIV.197106-09.nc','lat','lon'); 125 carte=reshape(carte1,24,15); 126 carte=carte'; 127 clear carte1; 128 129 % definition des lat et lon 130 fullfilename=[IRCAAM_ID,'rlut_d.',simulation, '.197106-09.nc']; 131 ncload(fullfilename,'lat','lon'); 132 clear fullfilename; 133 16 134 lon=lon-180; 17 135 lon=lon(54:77); … … 150 268 set (gca,'tickDir','out'); 151 269 152 print('-depsc2','resultats_eof_jjas_2006_1030.eps'); 270 fullfilename=[IRCAAM_OD,'carte_eof_', dataset, '_', simulation, '_', df, '.eps']; 271 print('-depsc2',fullfilename); 272 clear fullfilename; 273 274 clear dataset; 275 clear simulation; 276 clear df; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_as.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_ctl.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_ctl_clim.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 14 2 15 clear; 3 16 status=load('eof_1030_ircaam_ctl_clim.mat','C','L'); -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_1030_tr.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_as.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_ctl.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 14 2 15 3 16 clear; -
trunk/src/SIMULS_IRCAAM/carte_eof_ircaam_30100_tr.m
r26 r48 1 1 % 2 %+ 3 % 4 % EVOLUTIONS 5 % =========== 6 % 7 % $Id$ 8 % 9 % - fplod 2009-02-02T13:39:44Z aedon.locean-ipsl.upmc.fr (Darwin) 10 % 11 % * replaced by carte_eof_df.m 12 % 13 %- 2 14 3 15 clear; -
trunk/src/SIMULS_IRCAAM/time_serie_eof_df.m
r46 r48 41 41 % .. _eof_olr_ircaam_1030_as.m : eof_olr_ircaam_1030_as.m.html 42 42 % 43 % carte_eof_ ircaam_1030.m_44 % 45 % .. _carte_eof_ ircaam_1030.m : carte_eof_ircaam_1030.m.html43 % carte_eof_df.m_ 44 % 45 % .. _carte_eof_df.m : carte_eof_df.m.html 46 46 % 47 47 % TODO … … 68 68 % Days will be now written ``ndmin``\-``ndmaxd`` (ex: 10-30d) in filenames. 69 69 % 70 % Dataset ``arpege`` will be forced in output file names. .70 % Dataset ``arpege`` will be forced in output file names. 71 71 % 72 72 % Simulation name will be add to output file names (see parameters).
Note: See TracChangeset
for help on using the changeset viewer.