- Timestamp:
- Apr 14, 2016, 1:53:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SPESO/ana2015/all_data_summary.m
r444 r478 206 206 % --------------------------------------------------------------------------- 207 207 208 % ======================================================================================= 209 % ==================================== Main HTML ======================================== 210 % ======================================================================================= 211 208 212 fid=fopen(fnamehtml,'w'); 209 213 … … 216 220 fprintf(fid,'<H3>Files received</H3>'); 217 221 222 %================== Statistics for past month ================ 218 223 for iimg=1:8 219 if (iimg<=4) 220 days= 'recent'; 221 else 222 days= 'all_days'; 223 end 224 if (mod(floor((iimg-1)/2),2)==1) 225 shottxt='_all_shots'; 226 else 227 shottxt='_full_shots'; 228 end 229 if (mod(iimg,2)==1) 230 diff='_numbers'; 231 else 232 diff='_diff'; 233 end 234 235 if (mod(iimg-1,4)<2) 236 imgName=[ days shottxt diff '.png' ] ; 237 fprintf(fid,['<A HREF="' imgName '"> <IMG SRC="' imgName '" WIDTH=' num2str(imageSizes) ' align=middle > </A>\n']); 238 end %if: we only keep the first two images 239 if (iimg==4) 240 %fprintf(fid,['</BR>\n']); 241 end %iimg == 4 242 end %for iimg 224 225 if (iimg<=4) 226 days= 'recent'; 227 else 228 days= 'all_days'; 229 end; 230 231 if (mod(floor((iimg-1)/2),2)==1) 232 shottxt='_all_shots'; 233 else 234 shottxt='_full_shots'; 235 end; 236 237 if (mod(iimg,2)==1) 238 diff='_numbers'; 239 else 240 diff='_diff'; 241 end; 242 243 if (mod(iimg-1,4)<2) 244 imgName=[ days shottxt diff '.png' ] ; 245 fprintf(fid,['<A HREF="' imgName '">'... 246 '<IMG SRC="' imgName '" WIDTH=' num2str(imageSizes) ' align=middle >'... 247 '</A>\n']); 248 end; %if: we only keep the first two images 249 250 if (iimg==4) 251 %fprintf(fid,['</BR>\n']); 252 end; %iimg == 4 253 end; %for iimg 254 % ----------------------------------------------------------- 243 255 244 256 %%% Last 24h … … 260 272 261 273 %===================== SOLEIL status images ================================= 274 if iday==0 275 imgname = ['SOLEIL_status_since_1_days_20.png']; 276 fprintf(fid, [ '<A HREF="' imgname '" >' ... 277 '<IMG SRC="' imgname '" WIDTH=' num2str(imageSizes) ' >' ... 278 '</A>\n' ] ); 279 280 end; % if last 24h data 262 281 263 282 if datenum(dateStr, 'yyyymmdd')+8/24<now … … 363 382 end %for day 364 383 365 366 367 384 footer_fun(fid); 368 385 fclose(fid); 369 386 387 %------------------------------------------------------------------------------------------------- 388 %------------------------------------------ HTML End --------------------------------------------- 389 %------------------------------------------------------------------------------------------------- 390 370 391 end % function
Note: See TracChangeset
for help on using the changeset viewer.