- Timestamp:
- Apr 3, 2017, 9:54:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SPESO/ana2015/analyse_day.m
r634 r644 52 52 end % if ch(1) is on 53 53 54 if((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; 59 end % if ch(3) is on 54 60 hourStr=line(16:21); 55 61 htmltxt_table{str2num(hourStr(1:2))+1}=[ htmltxt_table{str2num(hourStr(1:2))+1} get_channels_html(theShot.shotInfo,0,line(7:21)) ]; … … 104 110 end % if ch(1) is on 105 111 112 if((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 121 end % if ch(3) is on 106 122 dayFullInfo.beamInfo(iFullShot,:)=theFullShot.shotInfo.beamInfo(1,:); 107 123 else … … 127 143 thisHourShots=find(floor(dayInfo.hoursNum(:)/10000)==ihour); 128 144 if (~isempty(thisHourShots)) 145 figure(plotStr*10000+ihour) 146 clf; 147 plot(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; 153 plot(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; 159 plot(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; 165 plot(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') 129 169 figure(plotStr*1000+ihour) 130 170 clf; … … 151 191 ylabel('Intensity [AU]') 152 192 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 153 198 for ifig=[ 0:3] 154 199 jfig=ifig*100+plotStr*1000+ihour; 155 200 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' ]); 157 202 end % for ifig 158 203 end % if length>0 … … 197 242 198 243 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' ]; 200 251 fprintf(fid, [ '<A HREF="' imgname '" >'... 201 252 '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' ></A>\n' ] );
Note: See TracChangeset
for help on using the changeset viewer.