1 | function composite_olr_phase() |
---|
2 | % composite_olr_phase ++ |
---|
3 | %+ |
---|
4 | % |
---|
5 | % .. _composite_olr_phase.m: |
---|
6 | % |
---|
7 | % ===================== |
---|
8 | % composite_olr_phase.m |
---|
9 | % ===================== |
---|
10 | % |
---|
11 | % ++ |
---|
12 | % |
---|
13 | % DESCRIPTION |
---|
14 | % =========== |
---|
15 | % |
---|
16 | % From :file:`olr.day.mean.nc`, composite_olr_phase compute ++, |
---|
17 | % roduce ++ and plot ++ |
---|
18 | % 2 Postscript files :file:`time_serie_type_tps_phase14.eps` and |
---|
19 | % :file:`time_serie_type_tps_phase58.eps` are written. |
---|
20 | % |
---|
21 | % CAUTIONS |
---|
22 | % ======== |
---|
23 | % |
---|
24 | % By heritage of :ref:`composite_olr_phase_num.m` : |
---|
25 | % |
---|
26 | % Need Statistics_Toolbox because of nanmean |
---|
27 | % |
---|
28 | % can't work with octave because of ncload and nanmean |
---|
29 | % |
---|
30 | % |
---|
31 | % EXAMPLES |
---|
32 | % ======== |
---|
33 | % |
---|
34 | % :: |
---|
35 | % |
---|
36 | % >> composite_olr_phase(); |
---|
37 | % |
---|
38 | % SEE ALSO |
---|
39 | % ======== |
---|
40 | % |
---|
41 | % :ref:`lagged_correlations_eof2_eof3_1030.m` |
---|
42 | % |
---|
43 | % :ref:`composite_olr_phase_num.m` |
---|
44 | % |
---|
45 | % :ref:`time_serie_histog_phase.m` |
---|
46 | % |
---|
47 | % :ref:`time_serie_histog_phase_num.m` |
---|
48 | % |
---|
49 | % TODO |
---|
50 | % ==== |
---|
51 | % |
---|
52 | % improve description |
---|
53 | % |
---|
54 | % improve file pb |
---|
55 | % |
---|
56 | % use return function |
---|
57 | % |
---|
58 | % By heritage of :ref:`composite_olr_phase_num.m` : |
---|
59 | % |
---|
60 | % test at the beginning if Statistics_Toolbox available |
---|
61 | % |
---|
62 | % test at the beginning if octave is running |
---|
63 | % |
---|
64 | % EVOLUTIONS |
---|
65 | % ========== |
---|
66 | % |
---|
67 | % $Id$ |
---|
68 | % |
---|
69 | % - fplod 2009-01-28T09:35:17Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
70 | % |
---|
71 | % * replace calls to composite_olr_phase[1-8] by calls to |
---|
72 | % composite_olr_phase_num |
---|
73 | % * add comments in ReST |
---|
74 | % |
---|
75 | %- |
---|
76 | close all; |
---|
77 | |
---|
78 | global IRCAAM_OD; |
---|
79 | |
---|
80 | figure(1); |
---|
81 | orient('landscape'); |
---|
82 | phase_num=1; |
---|
83 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
84 | composite_olr_phase_num(phase_num); |
---|
85 | title=['Phase', int2str(phase_num)]; |
---|
86 | text(-240,10,title); |
---|
87 | phase_num=phase_num+1; |
---|
88 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
89 | composite_olr_phase_num(phase_num); |
---|
90 | title=['Phase', int2str(phase_num)]; |
---|
91 | text(-240,10,title); |
---|
92 | phase_num=phase_num+1; |
---|
93 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
94 | composite_olr_phase_num(phase_num); |
---|
95 | title=['Phase', int2str(phase_num)]; |
---|
96 | text(-240,10,title); |
---|
97 | phase_num=phase_num+1; |
---|
98 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
99 | composite_olr_phase_num(phase_num); |
---|
100 | title=['Phase', int2str(phase_num)]; |
---|
101 | text(-240,10,title); |
---|
102 | |
---|
103 | |
---|
104 | figure(2); |
---|
105 | orient('landscape'); |
---|
106 | phase_num=phase_num+1; |
---|
107 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
108 | composite_olr_phase_num(phase_num); |
---|
109 | title=['Phase', int2str(phase_num)]; |
---|
110 | text(-240,10,title); |
---|
111 | phase_num=phase_num+1; |
---|
112 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
113 | composite_olr_phase_num(phase_num); |
---|
114 | title=['Phase', int2str(phase_num)]; |
---|
115 | text(-240,10,title); |
---|
116 | phase_num=phase_num+1; |
---|
117 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
118 | composite_olr_phase_num(phase_num); |
---|
119 | title=['Phase', int2str(phase_num)]; |
---|
120 | text(-240,10,title); |
---|
121 | phase_num=phase_num+1; |
---|
122 | subplot(4,1,mod(phase_num-1,4)+1); |
---|
123 | composite_olr_phase_num(phase_num); |
---|
124 | title=['Phase', int2str(phase_num)]; |
---|
125 | text(-240,10,title); |
---|
126 | |
---|
127 | clear phase_num; |
---|
128 | |
---|
129 | figure(1); |
---|
130 | fullfilename=[IRCAAM_OD,'composite_olr_phase_14.eps']; |
---|
131 | print('-depsc2',fullfilename); |
---|
132 | clear fullfilename; |
---|
133 | |
---|
134 | figure(2); |
---|
135 | fullfilename=[IRCAAM_OD,'composite_olr_phase_58.eps']; |
---|
136 | print('-depsc2',fullfilename); |
---|
137 | clear fullfilename; |
---|