Changeset 421 in ETALON for SPESO


Ignore:
Timestamp:
Mar 30, 2016, 5:10:33 PM (8 years ago)
Author:
malovyts
Message:

Fixed naming histograms in offline analysis

Location:
SPESO/ana2015/offline_analysis
Files:
2 edited

Legend:

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

    r419 r421  
    1 function offline_analyse_colorpmaps(date_mask)
     1function offline_analyse_colorpmaps_2016JanFeb.m(date_mask)
    22% function to create analysis web-page, with signas/bg analysis
    33% and colorplots
     
    230230                                % histigrams for different XPOS
    231231                                for QICT1loop=1:length(QICT1_selection)
    232                                         img_name=['histc_monthly_'...
     232                                        img_name=[data_names{dataloop} 'histc_monthly_'...
    233233                                                                         sprintf('%07d',(1+QICT1loop*10+LPMloop*100+POSloop*1000+XPOSloop*10000))...
    234234                                                                         '.png'];
     
    380380                                POS_edges{POSloop});
    381381                        set(gcf,'PaperUnits','inches','PaperPosition',[0 0 12 16]);
    382                         print(fih, '-dpng', '-r300',[ plots_basedir 'histc_monthly_'...
     382                        print(fih, '-dpng', '-r300',[ plots_basedir data_names{dataloop} 'histc_monthly_'...
    383383                                                              sprintf('%07d',(1+QICT1loop*10+LPMloop*100+POSloop*1000+10000*RESEAUloop))...
    384384                                                              '.png' ]);
  • SPESO/ana2015/offline_analysis/offline_analyse_colormaps_2016Mar.m

    r419 r421  
    1 function offline_analyse_colorpmaps(date_mask)
     1function offline_analyse_colorpmaps_2016Mar(date_mask)
    22% function to create analysis web-page, with signas/bg analysis
    33% and colorplots
     
    2222data_names={'DATA1_LPM','DATA2_LPM','DATA1_SPM','DATA2_SPM'}';
    2323
     24% ======================== from balayage =================
     25pos_hublot_Z=-66000;
     26pos_hublot_Y=-575000;
     27
     28N_DAYS=8;
     29%if (mod(theDate,N_DAYS)>0)
     30theDate=1:N_DAYS-1;
     31%zloop=2*str2num(datestr(now,'HH'))+floor((str2num(datestr(now,'MM')))/30)
     32zloop=0:47;
     33
     34pos_next_Y=-200000+(-1).*(floor(600000/48).*(zloop+0.5));
     35pos_next_X=-200000+(-1).*(floor(200000/(N_DAYS-1)).*(mod(theDate,N_DAYS)-1));
     36
     37%----------------------- end balayage --------------------
     38
     39delta_pos_Y=pos_next_Y(1)-pos_next_Y(2);
     40delta_pos_X=pos_next_X(1)-pos_next_X(2);
     41
     42% from end to start -> from min to max
     43X_edges=[pos_next_X(end)-delta_pos_X/2:delta_pos_X:pos_next_X(1)+delta_pos_X/2];
     44Y_edges=[pos_next_Y(end)-delta_pos_Y/2:delta_pos_Y:pos_next_Y(1)+delta_pos_Y/2];
    2445
    2546% 9 histograms displaying selected data
     
    3657                        % x_axis, y_axis, detector_data_type,S edges, X edges
    3758        data_colorplot(dvar.DETECT_SPOS, dvar.DETECT_XPOS, data_types(data_loop),...
    38                                          [-800000:12500:-300000], [-414285 -28571 -185714]);
     59                                         Y_edges, X_edges);
    3960
    4061        set(gcf,'PaperUnits','inches','PaperPosition',[0 0 12 9]);
     
    4768% selection definitions
    4869
    49         pos_hublot_Z=-66000;
    50         pos_hublot_Y=-575000;
    5170       
    5271        % XPOS  = -200000;
     
    6281        POS_selection{1}{2}={dvar.DETECT_SPOS, '>', pos_hublot_Y+100};
    6382        POS_var{1}=dvar.DETECT_SPOS;
    64         POS_edges{1}=[-800000:12500:-300000];
    65         POS_offset{1}(1)=-300000; % det 1
    66         POS_offset{1}(2)=-500000; % det 2
     83        POS_edges{1}=Y_edges;
     84        POS_offset{1}(1)=-650000; % det 1
     85        POS_offset{1}(2)=-450000; % det 2
    6786
    6887        % exclude pos_hublot_Z & plot Z_POS
     
    234253                                % histigrams for different XPOS
    235254                                for QICT1loop=1:length(QICT1_selection)
    236                                         img_name=['histc_monthly_'...
     255                                        img_name=[data_names{dataloop} 'histc_monthly_'...
    237256                                                                         sprintf('%07d',(1+QICT1loop*10+LPMloop*100+POSloop*1000+XPOSloop*10000))...
    238257                                                                         '.png'];
     
    384403                                POS_edges{POSloop});
    385404                        set(gcf,'PaperUnits','inches','PaperPosition',[0 0 12 16]);
    386                         print(fih, '-dpng', '-r300',[ plots_basedir 'histc_monthly_'...
     405                        print(fih, '-dpng', '-r300',[ plots_basedir data_names{dataloop} 'histc_monthly_'...
    387406                                                              sprintf('%07d',(1+QICT1loop*10+LPMloop*100+POSloop*1000+10000*RESEAUloop))...
    388407                                                              '.png' ]);
Note: See TracChangeset for help on using the changeset viewer.