- Timestamp:
- May 10, 2016, 2:59:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SPESO/ana2015/offline_analysis/offline_normalize_spectrum.m
r608 r613 169 169 nu_comb=cell(length(Q)/2,1); 170 170 171 det1_idx=7; 172 det2_idx=8; 171 det1_idx=15; 172 det2_idx=16; 173 174 bins_elem_num{det1_idx} 175 bins_elem_num{det2_idx} 173 176 174 177 Det2_val_raw=[values{det2_idx}]/3; 175 178 Det1_val_raw=[values{det1_idx}]; 176 bins_elem_num{det1_idx}177 bins_elem_num{det2_idx}178 179 Det2_val=[corrected_values{det2_idx}]/3; 179 180 Det1_val=[corrected_values{det1_idx}]; … … 191 192 Det1_ant_eff=[ant_eff{det1_idx}]; 192 193 194 % detector+antenna corections 195 % det sensitivity V/W, Boresight efficiency, surface of the waveguide 196 197 det1_coeff=1/1800/25.2./exp(2.3);%./exp((Det1_ant_eff-max(Det1_ant_eff))/10); % W/mm^2 198 det2_coeff=1/1200/16./exp(2.5);%./exp((Det2_ant_eff-max(Det2_ant_eff))/10); % W/mm^2 199 200 Det1_val_raw=Det1_val_raw.*det1_coeff; 201 Det2_val_raw=Det2_val_raw.*det2_coeff; 202 193 203 load('SC_RRR_10000fs.mat'); 194 204 … … 207 217 end 208 218 209 coeff=1/20*10^12/310^2*data_corrFactor(10, sp_theta, 9, r0{7})... 210 /1000*1000*(1-exp(-50*10^6*20*10^-12)).*exp(d_eff2/10)*30; 219 % smoothing experimental curve 220 %{ 221 averaging_n=3; 222 Det1_sel=fix(length(Det1_val_raw)/averaging_n)*averaging_n; 223 Det2_sel=fix(length(Det2_val_raw)/averaging_n)*averaging_n; 224 Det1_val_raw=mean(reshape(Det1_val_raw(end-Det1_sel+1:end),averaging_n,Det1_sel/averaging_n)); 225 Det2_val_raw=mean(reshape(Det2_val_raw(end-Det2_sel+1:end),averaging_n,Det2_sel/averaging_n)); 226 Det1_th=mean(reshape(Det1_th(end-Det1_sel+1:end),averaging_n,Det1_sel/averaging_n)); 227 Det2_th=mean(reshape(Det2_th(end-Det2_sel+1:end),averaging_n,Det2_sel/averaging_n)); 228 %} 229 230 % removing edge points 231 232 %Det1_val_raw=mean(reshape(Det1_val_raw,3,length)); 233 %Det2_val_raw=Det2_val_raw(1:end); 234 %Det1_th=Det1_th(9:end); 235 %Det2_th=Det2_th(1:end); 236 %Det1_val_raw=Det1_val_raw(9:end); 237 %Det2_val_raw=Det2_val_raw(1:end); 238 %Det1_th=Det1_th(9:end); 239 %Det2_th=Det2_th(1:end); 240 241 % theory coeff 242 % power: N_e*J/Sr/signal_time/R^2*far_correction = W/mm^2 243 coeff=104/260*10^9/310^2*data_corrFactor(10, sp_theta, 9, r0{7})... 244 *(1-exp(-50*10^6*40*10^-12)); % capacitance correction 211 245 212 246 fih=figure(1); 213 plot(Det1_th , Det1_val_raw-0.002, '--', 'LineWidth', 2, 'Color', [0 0.5 0]);247 plot(Det1_th-5, Det1_val_raw, '--', 'LineWidth', 2, 'Color', [0 0.5 0]); 214 248 xlim([40 140]); 215 249 hold on 216 plot(Det2_th, Det2_val_raw *3-0.002, '--', 'LineWidth', 2, 'Color', [0.19 0.55 0.91]);250 plot(Det2_th, Det2_val_raw, '--', 'LineWidth', 2, 'Color', [0.19 0.55 0.91]); 217 251 %plot(Det1_th, Det1_val, 'LineWidth', 2, 'Color', [0 0.75 0.24]); 218 252 %plot(Det2_th, Det2_val*3, 'LineWidth', 2, 'Color', [0 0 1]); … … 262 296 'Location', 'northwest'); 263 297 xlabel('theta, degree'); 264 ylabel('magnitude, V')298 ylabel('magnitude, W/mm^2') 265 299 title('SPM Data. R=310mm') 266 300 set(findall(gcf,'type','text'),'FontSize',20)%'fontWeight','bold')
Note: See TracChangeset
for help on using the changeset viewer.