Changeset 614 in ETALON


Ignore:
Timestamp:
May 13, 2016, 5:44:43 PM (8 years ago)
Author:
malovyts
Message:

Changed spectrum norlmalizing script

Location:
SPESO/ana2015/offline_analysis
Files:
2 edited

Legend:

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

    r608 r614  
    88% data_selection==2 after 2016/03/10 before 2016/04/09
    99
     10% 2015
     11offline_analysis('2015', '2015????.dayFullInfo', 1001); % histo
     12
    1013% 2016 03/09 -- 01/01
    11 offline_analysis('2016JanFeb', '20160{30?,2[^0]?}.dayFullInfo', 1001); % histo
     14%offline_analysis('2016JanFeb', '20160{30?,2[^0]?}.dayFullInfo', 1001); % histo
    1215%offline_analysis('2016JanFeb', '20160{30?,2??,1??}.dayFullInfo', 2001); % colorplots
    1316%offline_analysis('2016JanFebMarch', '20160{3[^1]?,31[^3],2??,1??}.dayFullInfo', 3002); % reseau analysis
  • SPESO/ana2015/offline_analysis/offline_normalize_spectrum.m

    r613 r614  
    169169nu_comb=cell(length(Q)/2,1);
    170170
    171 det1_idx=15;
    172 det2_idx=16;
     171det1_idx=11;
     172det2_idx=12;
    173173
    174174bins_elem_num{det1_idx}
     
    193193
    194194% 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
     195% det sensitivity V/W, Boresight efficiency, surface of the waveguide power
     196
     197
     198det1_coeff=1/1800/25.2./exp(Det1_ant_eff/10)*100; % W/mm^2
     199det2_coeff=1/1200/16./exp(Det2_ant_eff/10)*100; % W/mm^2
    199200
    200201Det1_val_raw=Det1_val_raw.*det1_coeff;
     
    234235%Det1_th=Det1_th(9:end);
    235236%Det2_th=Det2_th(1:end);
    236 %Det1_val_raw=Det1_val_raw(9:end);
     237Det1_val_raw=Det1_val_raw(9:end);
    237238%Det2_val_raw=Det2_val_raw(1:end);
    238 %Det1_th=Det1_th(9:end);
     239Det1_th=Det1_th(9:end);
    239240%Det2_th=Det2_th(1:end);
    240241
    241242        % theory coeff
    242243        % 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
     244        coeff=104/260*10^9/310^2*data_corrFactor(10, sp_theta, 9, r0{7});%...
     245                %*(1-exp(-50*10^6*40*10^-12)); % capacitance correction
    245246               
    246247        fih=figure(1);
     
    248249        xlim([40 140]);
    249250        hold on
    250         plot(Det2_th, Det2_val_raw, '--', 'LineWidth', 2, 'Color', [0.19 0.55 0.91]);
     251        plot(Det2_th-3, Det2_val_raw, '--', 'LineWidth', 2, 'Color', [0.19 0.55 0.91]);
    251252   %plot(Det1_th, Det1_val, 'LineWidth', 2, 'Color', [0 0.75 0.24]);
    252253        %plot(Det2_th, Det2_val*3, 'LineWidth', 2, 'Color', [0 0 1]);
    253254        %plot(sp_theta, sp_val_sum_RRR_far.*4*10^2, 'LineWidth', 2, 'Color', [1 1 0]);
    254 %{
     255
    255256        load('SC_RRR_10000fs.mat')
    256257        %sp_val_sum_SC=sp_val_sum_SC(1,1:15).*exp(d_eff(1,1:15)/10);
     
    289290        %                                       data_corrFactor(10, sp_theta(1,1:15), 9, r0{7});
    290291        plot(sp_theta, sp_val_sum_SC, '-^', 'LineWidth', 1, 'Color', [0 0 0]);
    291 %}
     292
    292293        hold off
    293294        legend('Det1 raw', 'Det2 raw',...
     
    297298        xlabel('theta, degree');
    298299        ylabel('magnitude, W/mm^2')
    299         title('SPM Data. R=310mm')
     300        title('LPM Data. R=310mm')
    300301   set(findall(gcf,'type','text'),'FontSize',20)%'fontWeight','bold')
    301302    set(gca,'fontsize',20)
     
    314315
    315316
     317        load('SC_RRR_10000fs.mat')
    316318
    317319save('NormalizedSpectrum_20160421.mat',...
Note: See TracChangeset for help on using the changeset viewer.