Changeset 644 in ETALON for SPESO


Ignore:
Timestamp:
Apr 3, 2017, 9:54:44 AM (7 years ago)
Author:
hodnevuc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SPESO/ana2015/analyse_day.m

    r634 r644  
    5252end % if ch(1) is on
    5353
     54if((theShot.shotInfo.ch(3).on)==1)
     55        dayInfo.ch3signalValSPM(iShot)=dayInfo.shots(iShot).shotInfo.ch(3).values.SPM.signalVal;
     56        dayInfo.ch3signalNegPeakSPM(iShot)=dayInfo.shots(iShot).shotInfo.ch(3).values.SPM.signalNegPeak;
     57        dayInfo.ch3signalValLPM(iShot)=dayInfo.shots(iShot).shotInfo.ch(3).values.LPM.signalVal;
     58        dayInfo.ch3signalNegPeakLPM(iShot)=dayInfo.shots(iShot).shotInfo.ch(3).values.LPM.signalNegPeak;
     59end % if ch(3) is on
    5460        hourStr=line(16:21);
    5561        htmltxt_table{str2num(hourStr(1:2))+1}=[ htmltxt_table{str2num(hourStr(1:2))+1} get_channels_html(theShot.shotInfo,0,line(7:21)) ];
     
    104110end % if ch(1) is on
    105111
     112if((theShot.shotInfo.ch(3).on)==1)
     113  if  (~(isempty(theShot.shotInfo.ch(3).values)))
     114        dayFullInfo.ch3signalValSPM(iFullShot)=dayFullInfo.shots(iFullShot).shotInfo.ch(3).values.SPM.signalVal;
     115        dayFullInfo.ch3signalNegPeakSPM(iFullShot)=dayFullInfo.shots(iFullShot).shotInfo.ch(3).values.SPM.signalNegPeak;
     116        dayFullInfo.ch3signalValLPM(iFullShot)=dayFullInfo.shots(iFullShot).shotInfo.ch(3).values.LPM.signalVal;
     117        dayFullInfo.ch3signalNegPeakLPM(iFullShot)=dayFullInfo.shots(iFullShot).shotInfo.ch(3).values.LPM.signalNegPeak;
     118        else % shot is empty
     119                 error_sp(['Empty channel 3 shot on ' dateStr ' shot number ' num2str(iFullShot) ])
     120        end % is shot empty
     121end % if ch(3) is on
    106122        dayFullInfo.beamInfo(iFullShot,:)=theFullShot.shotInfo.beamInfo(1,:);
    107123    else
     
    127143        thisHourShots=find(floor(dayInfo.hoursNum(:)/10000)==ihour);
    128144        if (~isempty(thisHourShots))
     145            figure(plotStr*10000+ihour)
     146            clf;
     147plot(floor(mod(dayInfo.hoursNum(thisHourShots),10000)/100),dayInfo.ch1signalValSPM(thisHourShots))
     148            title(' Ch1 - signal val SPM')
     149            ylabel('Intensity [AU]')
     150            xlabel('Minutes in the hour')
     151            figure(plotStr*10000+100+ihour)
     152            clf;
     153plot(floor(mod(dayInfo.hoursNum(thisHourShots),10000)/100),dayInfo.ch1signalNegPeakSPM(thisHourShots))
     154            title(' Ch1 - signal Neg Peak SPM')
     155            ylabel('Intensity [AU]')
     156            xlabel('Minutes in the hour')
     157            figure(plotStr*10000+200+ihour)
     158            clf;
     159plot(floor(mod(dayInfo.hoursNum(thisHourShots),10000)/100),dayInfo.ch1signalValLPM(thisHourShots))
     160            title(' Ch1 - signal val LPM')
     161            ylabel('Intensity [AU]')
     162            xlabel('Minutes in the hour')
     163            figure(plotStr*10000+300+ihour)
     164            clf;
     165plot(floor(mod(dayInfo.hoursNum(thisHourShots),10000)/100),dayInfo.ch1signalNegPeakLPM(thisHourShots))
     166            title(' Ch1 - signal Neg Peak LPM')
     167            ylabel('Intensity [AU]')
     168            xlabel('Minutes in the hour')
    129169            figure(plotStr*1000+ihour)
    130170            clf;
     
    151191            ylabel('Intensity [AU]')
    152192            xlabel('Minutes in the hour')
     193            for ifig=[ 0:3]
     194  jfig=ifig*100+plotStr*10000+ihour;
     195  figure(jfig)
     196  print('-dpng', [ plots_basedir dateStr  '/'  sprintf('%02d',ihour) '/'  'hourly_figure_' num2str(ifig) '_ch1.png' ]);
     197            end % for ifig
    153198            for ifig=[ 0:3]
    154199  jfig=ifig*100+plotStr*1000+ihour;
    155200  figure(jfig)
    156   print('-dpng', [ plots_basedir dateStr  '/'  sprintf('%02d',ihour) '/'  'hourly_figure_' num2str(ifig) '.png' ]);
     201  print('-dpng', [ plots_basedir dateStr  '/'  sprintf('%02d',ihour) '/'  'hourly_figure_' num2str(ifig) '_ch2.png' ]);
    157202            end % for ifig
    158203        end % if length>0
     
    197242       
    198243        for ifig=[ 0:3]
    199           imgname=[ 'hourly_figure_' num2str(ifig) '.png'       ];
     244          imgname=[ 'hourly_figure_' num2str(ifig) '_ch1.png'   ];
     245          fprintf(fid, [ '<A HREF="' imgname '" >'...
     246                         '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' ></A>\n' ] );
     247        end % for ifig
     248
     249        for ifig=[ 0:3]
     250          imgname=[ 'hourly_figure_' num2str(ifig) '_ch2.png'   ];
    200251          fprintf(fid, [ '<A HREF="' imgname '" >'...
    201252                         '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' ></A>\n' ] );
Note: See TracChangeset for help on using the changeset viewer.