1 | clear all; close all; clc; |
---|
2 | date=20170524; |
---|
3 | load('data2405.mat'); |
---|
4 | %cut by electron signal |
---|
5 | %cut on signal on 12's detector (zero signal); and 11's detector (DAQ problem) |
---|
6 | cut=(key_value(:,8)>1e+3)&(abs(data(:,11,2))<100)&(abs(data(:,12,2))<50);%&(sum(data(:,:,2)~=0,2)); |
---|
7 | |
---|
8 | position=key_value(:,4)*7.94e-6; |
---|
9 | hour=rem(key_value(:,6),date); |
---|
10 | diapW814=(hour>81800)&(hour<84200); |
---|
11 | diapW906=(hour>121000)&(hour<123500); |
---|
12 | |
---|
13 | for c=1:11 |
---|
14 | [Xpos,Ypos(c,:), ~]=makemean(position(cut&diapW814)-48.58-3.46,data(cut&diapW814,c,2)) |
---|
15 | end |
---|
16 | figure(123) |
---|
17 | % [hc hc]=contourf(data(cut&diapW814,:,2)./repmat(key_value(cut&diapW814,8)*1000,1,12)) |
---|
18 | [hc hc]=contourf(300./(6*(1-cos((48:7:118)/180*pi))),Xpos,Ypos',40) |
---|
19 | colorbar; |
---|
20 | set(gca,'fontsize',16) |
---|
21 | set(hc,'LineStyle','none'); |
---|
22 | title('\phi_B=8.14') |
---|
23 | xlabel('Frequency, [GHz]') |
---|
24 | ylabel('BGS, [mm]') |
---|
25 | |
---|
26 | clear Xpos Ypos |
---|
27 | for c=1:11 |
---|
28 | [Xpos,Ypos(c,:), ~]=makemean(position(cut&diapW906)-48.58-3.46,data(cut&diapW906,c,2)) |
---|
29 | end |
---|
30 | figure(321) |
---|
31 | % [hc hc]=contourf(data(cut&diapW814,:,2)./repmat(key_value(cut&diapW814,8)*1000,1,12)) |
---|
32 | [hc hc]=contourf(300./(6*(1-cos((48:7:118)/180*pi))),Xpos,Ypos',40) |
---|
33 | colorbar; |
---|
34 | set(gca,'fontsize',16) |
---|
35 | set(hc,'LineStyle','none'); |
---|
36 | title('\phi_B=9.06') |
---|
37 | xlabel('Frequency, [GHz]') |
---|
38 | ylabel('BGS, [mm]') |
---|
39 | |
---|
40 | |
---|
41 | % figure(1) |
---|
42 | % semilogy(position(cut&diapW814)-48.58-3.46,data(cut&diapW814,7,2)./key_value(cut&diapW814,8)*1000,'ok','MarkerFaceColor','k') |
---|
43 | % hold on |
---|
44 | % semilogy(position(cut&diapW906)-48.58-3.46,data(cut&diapW906,7,2)./key_value(cut&diapW906,8)*1000,'^r','MarkerFaceColor','r') |
---|
45 | % set(gca,'fontsize',16) |
---|
46 | % legend('Location','northwest') |
---|
47 | % legend('\phi_B=8.14','\phi_B=9.06') |
---|
48 | % grid on |
---|
49 | % xlabel('Beam-grating separation, [mm]') |
---|
50 | % ylabel('Amplitude, [a.u.]') |
---|
51 | % ylim([6 25]) |
---|
52 | % xlim([-55 0]) |
---|
53 | % title('Detector 90^o') |
---|
54 | % |
---|
55 | % |
---|
56 | % |
---|
57 | % figure(11) |
---|
58 | % [Xpos,Ypos, Yerr]=makemean(position(cut&diapW814)-48.58-3.46,(data(cut&diapW814,7,2)./key_value(cut&diapW814,8)*1000)); |
---|
59 | % set(gca,'YScale','log'); |
---|
60 | % errorbar(Xpos,Ypos, Yerr,'ok','MarkerFaceColor','k') |
---|
61 | % hold on |
---|
62 | % [Xpos,Ypos, Yerr]=makemean(position(cut&diapW906)-48.58-3.46,(data(cut&diapW906,7,2)./key_value(cut&diapW906,8)*1000)); |
---|
63 | % errorbar(Xpos,Ypos, Yerr,'^r','MarkerFaceColor','r') |
---|
64 | % set(gca,'YScale','log'); |
---|
65 | % set(gca,'fontsize',16) |
---|
66 | % legend('Location','northwest') |
---|
67 | % legend('\phi_B=8.14','\phi_B=9.06') |
---|
68 | % grid on |
---|
69 | % xlabel('Beam-grating separation, [mm]') |
---|
70 | % ylabel('Amplitude, [a.u.]') |
---|
71 | % ylim([5 25]) |
---|
72 | % xlim([-55 0]) |
---|
73 | % title('Detector 90^o') |
---|
74 | % |
---|
75 | % |
---|
76 | % figure(2) |
---|
77 | % semilogy(position(cut&diapW814)-48.58-3.46,data(cut&diapW814,11,2)./key_value(cut&diapW814,8)*1000,'ok','MarkerFaceColor','k') |
---|
78 | % hold on |
---|
79 | % semilogy(position(cut&diapW906)-48.58-3.46,data(cut&diapW906,11,2)./key_value(cut&diapW906,8)*1000,'^r','MarkerFaceColor','r') |
---|
80 | % set(gca,'fontsize',16) |
---|
81 | % legend('Location','northwest') |
---|
82 | % legend('\phi_B=8.14','\phi_B=9.06') |
---|
83 | % grid on |
---|
84 | % xlabel('Beam-grating separation, [mm]') |
---|
85 | % ylabel('Amplitude, [a.u.]') |
---|
86 | % ylim([5 25]) |
---|
87 | % xlim([-55 0]) |
---|
88 | % title('Detector 118^o') |
---|
89 | % |
---|
90 | % |
---|
91 | % |
---|
92 | % figure(21) |
---|
93 | % [Xpos,Ypos, Yerr]=makemean(position(cut&diapW814)-48.58-3.46,(data(cut&diapW814,11,2)./key_value(cut&diapW814,8)*1000)); |
---|
94 | % set(gca,'YScale','log'); |
---|
95 | % errorbar(Xpos,Ypos, Yerr,'ok','MarkerFaceColor','k') |
---|
96 | % hold on |
---|
97 | % [Xpos,Ypos, Yerr]=makemean(position(cut&diapW906)-48.58-3.46,(data(cut&diapW906,11,2)./key_value(cut&diapW906,8)*1000)); |
---|
98 | % errorbar(Xpos,Ypos, Yerr,'^r','MarkerFaceColor','r') |
---|
99 | % set(gca,'YScale','log'); |
---|
100 | % set(gca,'fontsize',16) |
---|
101 | % legend('Location','northwest') |
---|
102 | % legend('\phi_B=8.14','\phi_B=9.06') |
---|
103 | % grid on |
---|
104 | % xlabel('Beam-grating separation, [mm]') |
---|
105 | % ylabel('Amplitude, [a.u.]') |
---|
106 | % ylim([5 25]) |
---|
107 | % xlim([-55 0]) |
---|
108 | % title('Detector 118^o') |
---|
109 | % |
---|
110 | % |
---|
111 | % figure(3) |
---|
112 | % semilogy(position(cut&diapW814)-48.58-3.46,data(cut&diapW814,1,2)./key_value(cut&diapW814,8)*1000,'ok','MarkerFaceColor','k') |
---|
113 | % hold on |
---|
114 | % semilogy(position(cut&diapW906)-48.58-3.46,data(cut&diapW906,1,2)./key_value(cut&diapW906,8)*1000,'^r','MarkerFaceColor','r') |
---|
115 | % set(gca,'fontsize',16) |
---|
116 | % legend('Location','northwest') |
---|
117 | % legend('\phi_B=8.14','\phi_B=9.06') |
---|
118 | % grid on |
---|
119 | % xlabel('Beam-grating separation, [mm]') |
---|
120 | % ylabel('Amplitude, [a.u.]') |
---|
121 | % ylim([5 25]) |
---|
122 | % xlim([-55 0]) |
---|
123 | % title('Detector 48^o') |
---|
124 | % |
---|
125 | % |
---|
126 | % |
---|
127 | % figure(31) |
---|
128 | % [Xpos,Ypos, Yerr]=makemean(position(cut&diapW814)-48.58-3.46,(data(cut&diapW814,1,2)./key_value(cut&diapW814,8)*1000)); |
---|
129 | % set(gca,'YScale','log'); |
---|
130 | % errorbar(Xpos,Ypos, Yerr,'ok','MarkerFaceColor','k') |
---|
131 | % hold on |
---|
132 | % [Xpos,Ypos, Yerr]=makemean(position(cut&diapW906)-48.58-3.46,(data(cut&diapW906,1,2)./key_value(cut&diapW906,8)*1000)); |
---|
133 | % errorbar(Xpos,Ypos, Yerr,'^r','MarkerFaceColor','r') |
---|
134 | % set(gca,'YScale','log'); |
---|
135 | % set(gca,'fontsize',16) |
---|
136 | % legend('Location','northwest') |
---|
137 | % legend('\phi_B=8.14','\phi_B=9.06') |
---|
138 | % grid on |
---|
139 | % xlabel('Beam-grating separation, [mm]') |
---|
140 | % ylabel('Amplitude, [a.u.]') |
---|
141 | % ylim([5 25]) |
---|
142 | % xlim([-55 0]) |
---|
143 | % title('Detector 48^o') |
---|