Changeset 445 in ETALON
- Timestamp:
- Mar 31, 2016, 5:55:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SPESO/ana2015/analyse_day.m
r433 r445 169 169 analyse_dayInfo(dateStr, 200); 170 170 171 %===================== Copy SOLEIL status imgs ============================= 172 imgName1 = ['soleil_status_' dateStr '_08.png']; 173 [result errmsg]=copyfile( [ basedir '/' dateStr '/' imgName1 ] ,... 174 [ plots_basedir '/' dateStr '/' imgName1 ] ); 175 if datenum(dateStr, 'yyyymmdd')+20/24<now 176 imgName1 = ['soleil_status_' dateStr '_20.png']; 177 [result errmsg]=copyfile( [ basedir '/' dateStr '/' imgName1 ] ,... 178 [ plots_basedir '/' dateStr '/' imgName1 ] ); 179 end; % if data for 20 hours exist 180 % --------------------------------------------------------------------------- 181 171 182 %%% HTML file 172 183 173 184 174 % page for each hour185 % ================================== page for 00 - 23 hours ========================== 175 186 for ihour=0:23 176 187 %ihour=24 => full day … … 221 232 analyse_day_html_generalFooter(fid); 222 233 end %for each hour 223 224 % daily pages 225 % page for general info234 % --------------------------------- page for 00 - 23 hours ------------------------------ 235 236 % ============================== page for general info ================================== 226 237 fhtmlname_general=[ plots_basedir dateStr '/' 'info_daily.html' ]; 227 238 228 239 titleStr = [ 'SPESO - 1-day - ' dateStr ]; 229 240 241 % HEADER 230 242 fid=analyse_day_html_generalHeader(fhtmlname_general, titleStr, dateStr); 231 fprintf(fid,'<HR>'); 243 244 fprintf(fid,'<HR>'); % ------------------------------------------- 232 245 fprintf(fid,[ '<BR/> nData= ' num2str(nDataNum)... 233 246 ' / nShots= ' num2str(nShots)... … … 235 248 fprintf(fid,'<HR>');% --------------------------------------------------- 236 249 %online analysis 250 251 % ======================== SOLEIL status images =================================== 252 if datenum(dateStr, 'yyyymmdd')+8/24<now 253 imgName = ['soleil_status_' dateStr '_08.png']; 254 fprintf(fid, [ '<A HREF="' imgName '" >' ... 255 '<IMG SRC="' imgName '" WIDTH=' num2str(imageSizes) ' >' ... 256 '</A>\n' ] ); 257 end; % % is it is past 08:00 258 if datenum(dateStr, 'yyyymmdd')+20/24<now 259 imgName = ['soleil_status_' dateStr '_20.png']; 260 fprintf(fid, [ '<A HREF="' imgName '" >' ... 261 '<IMG SRC="' imgName '" WIDTH=' num2str(imageSizes) ' >' ... 262 '</A>\n' ] ); 263 end; % is it is past 20:00 264 if datenum(dateStr, 'yyyymmdd')+1+8/24<now 265 imgName = ['soleil_status_' datestr(datenum(dateStr, 'yyyymmdd')+1, 'yyyymmdd') '_08.png']; 266 fprintf(fid, [ '<A HREF="' imgName '" >' ... 267 '<IMG SRC="' imgName '" WIDTH=' num2str(imageSizes) ' >' ... 268 '</A>\n' ] ); 269 end; % if it is less than 24 hours ago 270 % -------------------------- END SOLEIL status--------------------------------------- 271 272 % ====================== data contrast for 4 data types ============================= 237 273 imgname=[ 'analysis_figure_' num2str(200) '.png' ]; 238 fprintf(fid, [ '<A HREF="' imgname '" ><IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' ></A>\n' ] ); 274 fprintf(fid, [ '<A HREF="' imgname '" >' ... 275 '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' >' ... 276 '</A>\n' ] ); 277 % ----------------------------------------------------------------------------------- 278 279 %============================= if full data exists ================================= 280 if (nFullShots>0) 281 for ifig=[1] 282 imgname=[ 'analysis_figure_' num2str(ifig) '.png' ]; 283 fprintf(fid, [ '<A HREF="' imgname '" >' ... 284 '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' >' ... 285 '</A>\n' ] ); 286 end % for each figure 287 end %if nFullShots>0 288 % ----------------------------------- full data -------------------------------------- 289 290 % ================================== data in table =================================== 239 291 fprintf(fid,'<table>'); 240 for irow=0:4 292 % irow 293 % 0 - all data scatter 294 % 1 - histc bin width - 30 min 295 % 2 - histc bin width - 8 hours 296 % 3 - histo binarized values 297 % 4 - scatter 30 min 298 for irow=[4 3 0 1 2] 241 299 fprintf(fid,'<tr>'); 242 300 for ifig=[201+irow*4:204+irow*4] 243 301 imgname=[ 'analysis_figure_' num2str(ifig) '.png' ]; 244 302 fprintf(fid,'<td>'); 245 fprintf(fid, [ '<A HREF="' imgname '" ><IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' ></A>\n' ] ); 303 fprintf(fid, [ '<A HREF="' imgname '" >' ... 304 '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' >' ... 305 '</A>\n' ] ); 246 306 fprintf(fid,'<td>'); 247 307 end % for each figure … … 249 309 end; % irow 250 310 fprintf(fid,'</table>'); 311 312 % ----------------------------------- end table ------------------------------------ 251 313 252 if (nFullShots>0)253 for ifig=[1,101,111:112]254 imgname=[ 'analysis_figure_' num2str(ifig) '.png' ];255 fprintf(fid, [ '<A HREF="' imgname '" ><IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' ></A>\n' ] );256 end % for each figure257 end %if nFullShots>0258 314 fprintf(fid,'<HR>');% --------------------------------------------------- 259 315 260 316 analyse_day_html_generalFooter(fid); 261 % page with hourly plots 317 % --------------------------------- end daily general info --------------------------------- 318 319 % =============================== page with hourly plots =================================== 262 320 fhtmlname_hours=[ plots_basedir dateStr '/' 'info_daily_hours.html' ]; 263 321 … … 276 334 277 335 analyse_day_html_generalFooter(fid); 278 279 % page with shot tables 336 % -------------------------------- end hourly plot ----------------------------------------- 337 338 % ============================== page with shot tables ====================================== 280 339 fhtmlname_tables=[ plots_basedir dateStr '/' 'info_daily_tables.html' ]; 281 340 … … 319 378 320 379 analyse_day_html_generalFooter(fid); 321 322 % page for shots 380 % -------------------------------- end page with table of shots -------------------------------- 381 382 % ===================================== page for shots ======================================== 323 383 324 384 fhtmlname_shots=[ plots_basedir dateStr '/' 'info_daily_shots.html' ]; … … 336 396 337 397 analyse_day_html_generalFooter(fid); 338 398 % ------------------------------------ end page with shots ------------------------------------- 339 399 340 400
Note: See TracChangeset
for help on using the changeset viewer.