-
Notifications
You must be signed in to change notification settings - Fork 0
/
May04_ERA40_G500_ECWMF_ref05_psd_fig.m
165 lines (165 loc) · 5.38 KB
/
May04_ERA40_G500_ECWMF_ref05_psd_fig.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
% 8Aera×÷ͼ
% Periodogram PSD of G500 in 6Aera - WZZM Form
% plot PSD_Figure
figure(1)
plot(f1,PXX_WZZM_8Aera(:,4),f1,PXX_E_8Aera(:,4),f1,PXX_O_8Aera(:,4),'LineWidth',1);
hold on;
grid on;
plot(f1,RedConf_O_8Aera(:,1,4)./100,'r-.');
xlabel('Cycles/Year')
ylabel('PSD(W/Hz)')
% title('Periodogram of G500 Global.Mean')
FF=[0:0.05:0.5];
t=round(0.5./FF.*100)/100;
%set(gca,'xticklabel',t);
set(gca,'Ylim',[0 9000])
legend('WZZM','CM','Obs');
set(gca, 'Fontname', 'Times New Roman', 'Fontsize', 10);
figure(4)
plot(f1,PXX_WZZM_8Aera(:,[1 2 3 5 6 8]),'LineWidth',1);
hold on;
%plot(f1,RedConf_WZZM_GlobalAve(:,1),'r-.',f1,RedConf_WZZM_GlobalAve(:,2),'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in 6Aera - WZZM Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
set(gca,'Ylim',[0 2000]);
legend('1','2','3','5','6','8');
% Periodogram PSD of G500 in 6Aera - DY Form
figure(5)
plot(f1,PXX_DY_8Aera(:,[1 2 3 5 6 8]),'LineWidth',1);
hold on;
%plot(f1,RedConf_WZZM_GlobalAve(:,1),'r-.',f1,RedConf_WZZM_GlobalAve(:,2),'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in 6Aera - DY Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
set(gca,'Ylim',[0 2000]);
legend('1','2','3','5','6','8');
%Periodogram PSD of G500 in 6Aera - E Form
figure(6)
plot(f1,PXX_E_8Aera(:,[1 2 3 5 6 8]),'LineWidth',1);
hold on;
%plot(f1,RedConf_WZZM_GlobalAve(:,1),'r-.',f1,RedConf_WZZM_GlobalAve(:,2),'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in 6Aera - E Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
Max=1.1*(max(max(PXX_E_8Aera(:,[1 2 3 5 6 8]))));
set(gca,'Ylim',[0 Max]);
legend('1','2','3','5','6','8');
% Periodogram PSD of G500 in 6Aera - O Form
figure(7)
plot(f1,PXX_O_8Aera(:,[1 2 3 5 6 8]),'LineWidth',1);
hold on;
%plot(f1,RedConf_WZZM_GlobalAve(:,1),'r-.',f1,RedConf_WZZM_GlobalAve(:,2),'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in 6Aera - O Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
Max=1.1*(max(max(PXX_O_8Aera(:,[1 2 3 5 6 8]))));
set(gca,'Ylim',[0 Max]);
legend('1','2','3','5','6','8');
% A 1 2 5 FourForms
figure(8)
% Ò»´ó¶Ñ»´íµÄͼ
% PXX_4Form_2Aera=[squeeze(PXX_O_8Aera(:,1))';squeeze(PXX_O_8Aera(:,5))';...
% squeeze(PXX_E_8Aera(:,1))';squeeze(PXX_E_8Aera(:,5))';...
% squeeze(PXX_DY_8Aera(:,1))';squeeze(PXX_DY_8Aera(:,5))';...
% squeeze(PXX_WZZM_8Aera(:,1))';squeeze(PXX_WZZM_8Aera(:,5))'];
% plot(f1',PXX_4Form_2Aera');
% ArrayName = {'LineStyle','LineColor'};
% ArrayIns = {'-','r';'--','r';'-','g';'--','g';'-','b';'--','b';'-','y';'--','y'};
% set(gca,ArrayName,ArrayIns);
% ArrayName = {'LineStyle'};
% ArrayIns = {'-','--','-','--','-','--','-','--'}';
% set(gca,ArrayName,ArrayIns);
% ArrayName = {'LineColor'};
% ArrayIns = {'r','y','b','g','r','y','b','g'}';
% set(gca,ArrayName,ArrayIns);
% set(gca,'LineWidth',1);
PXX_4Form_A1=[PXX_O_8Aera(:,1),PXX_E_8Aera(:,1),...
PXX_DY_8Aera(:,1),PXX_WZZM_8Aera(:,1)];
PXX_4Form_A5=[PXX_O_8Aera(:,5),PXX_E_8Aera(:,5),...
PXX_DY_8Aera(:,5),PXX_WZZM_8Aera(:,5)];
PXX_4Form_A4=[PXX_O_8Aera(:,4),PXX_E_8Aera(:,4),...
PXX_DY_8Aera(:,4),PXX_WZZM_8Aera(:,4)];
ArrayName={'Color'};
ArrayValue={'r','y','g','b'}';
A1=plot(f1,PXX_4Form_A1,'LineWidth',1);
set(A1,ArrayName,ArrayValue);
hold on;
% A5=plot(f1,PXX_4Form_A5,'LineWidth',1,'LineStyle','--');
% set(A5,ArrayName,ArrayValue);
plot(f1,RedConf_WZZM_8Aera(:,1,1)./100,'r-.',f1,RedConf_WZZM_8Aera(:,2,1)./1000,'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in Aera1 - Four Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
Max=1.1*(max(max(PXX_O_8Aera(:,[1 2 3 5 6 8]))));
set(gca,'Ylim',[0 Max]);
legend(A1,'O','E','DY','WZZM');
% hold on;
% L2=legend(A5,'O','E','DY','WZZM');
figure(9)
ArrayName={'Color'};
ArrayValue={'r','y','g','b'}';
% A1=plot(f1,PXX_4Form_A1,'LineWidth',1);
% set(A1,ArrayName,ArrayValue);
hold on;
A5=plot(f1,PXX_4Form_A5,'LineWidth',1,'LineStyle','-');
set(A5,ArrayName,ArrayValue);
hold on;
plot(f1,RedConf_WZZM_8Aera(:,1,5)./100,'r-.',f1,RedConf_WZZM_8Aera(:,2,5)./1000,'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in Aera5 - Four Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
Max=1.1*(max(max(PXX_O_8Aera(:,[1 2 3 5 6 8]))));
set(gca,'Ylim',[0 Max]);
legend(A5,'O','E','DY','WZZM');
figure(10)
ArrayName={'Color'};
ArrayValue={'r','y','g','b'}';
% A1=plot(f1,PXX_4Form_A1,'LineWidth',1);
% set(A1,ArrayName,ArrayValue);
hold on;
A4=plot(f1,PXX_4Form_A4,'LineWidth',1,'LineStyle','-');
set(A4,ArrayName,ArrayValue);
hold on;
plot(f1,RedConf_WZZM_8Aera(:,1,4)./100,'r-.',f1,RedConf_WZZM_8Aera(:,2,4)./1000,'g-.')
grid on;
xlabel('Cycles/Year')
ylabel('dB')
title('Periodogram PSD of G500 in Aera4 - Four Form')
FF=[0.5/42 0.05:0.05:0.5];
t=[round(0.5./FF.*100)/100 ];
set(gca,'xtick',FF);
set(gca,'xticklabel',t);
Max=1.1*(max(max(PXX_WZZM_8Aera(:,4))));
set(gca,'Ylim',[0 Max]);
legend(A4,'O','E','DY','WZZM');