Changeset 613 in ETALON for SPESO


Ignore:
Timestamp:
May 10, 2016, 2:59:31 PM (8 years ago)
Author:
malovyts
Message:

Modified offline anlysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SPESO/ana2015/offline_analysis/offline_normalize_spectrum.m

    r608 r613  
    169169nu_comb=cell(length(Q)/2,1);
    170170
    171 det1_idx=7;
    172 det2_idx=8;
     171det1_idx=15;
     172det2_idx=16;
     173
     174bins_elem_num{det1_idx}
     175bins_elem_num{det2_idx}
    173176
    174177Det2_val_raw=[values{det2_idx}]/3;
    175178Det1_val_raw=[values{det1_idx}];
    176 bins_elem_num{det1_idx}
    177 bins_elem_num{det2_idx}
    178179Det2_val=[corrected_values{det2_idx}]/3;
    179180Det1_val=[corrected_values{det1_idx}];
     
    191192Det1_ant_eff=[ant_eff{det1_idx}];
    192193
     194% detector+antenna corections
     195% det sensitivity V/W, Boresight efficiency, surface of the waveguide
     196
     197det1_coeff=1/1800/25.2./exp(2.3);%./exp((Det1_ant_eff-max(Det1_ant_eff))/10); % W/mm^2
     198det2_coeff=1/1200/16./exp(2.5);%./exp((Det2_ant_eff-max(Det2_ant_eff))/10); % W/mm^2
     199
     200Det1_val_raw=Det1_val_raw.*det1_coeff;
     201Det2_val_raw=Det2_val_raw.*det2_coeff;
     202
    193203load('SC_RRR_10000fs.mat');
    194204
     
    207217end
    208218
    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%{
     221averaging_n=3;
     222Det1_sel=fix(length(Det1_val_raw)/averaging_n)*averaging_n;
     223Det2_sel=fix(length(Det2_val_raw)/averaging_n)*averaging_n;
     224Det1_val_raw=mean(reshape(Det1_val_raw(end-Det1_sel+1:end),averaging_n,Det1_sel/averaging_n));
     225Det2_val_raw=mean(reshape(Det2_val_raw(end-Det2_sel+1:end),averaging_n,Det2_sel/averaging_n));
     226Det1_th=mean(reshape(Det1_th(end-Det1_sel+1:end),averaging_n,Det1_sel/averaging_n));
     227Det2_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
    211245               
    212246        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]);
    214248        xlim([40 140]);
    215249        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]);
    217251   %plot(Det1_th, Det1_val, 'LineWidth', 2, 'Color', [0 0.75 0.24]);
    218252        %plot(Det2_th, Det2_val*3, 'LineWidth', 2, 'Color', [0 0 1]);
     
    262296                         'Location', 'northwest');
    263297        xlabel('theta, degree');
    264         ylabel('magnitude, V')
     298        ylabel('magnitude, W/mm^2')
    265299        title('SPM Data. R=310mm')
    266300   set(findall(gcf,'type','text'),'FontSize',20)%'fontWeight','bold')
Note: See TracChangeset for help on using the changeset viewer.