Changeset 478 in ETALON for SPESO


Ignore:
Timestamp:
Apr 14, 2016, 1:53:51 PM (8 years ago)
Author:
malovyts
Message:

Added 'yesterday evening' SOLEIL status image to the 24h row on the all data page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SPESO/ana2015/all_data_summary.m

    r444 r478  
    206206% ---------------------------------------------------------------------------
    207207
     208% =======================================================================================
     209% ==================================== Main HTML ========================================
     210% =======================================================================================
     211
    208212fid=fopen(fnamehtml,'w');
    209213
     
    216220fprintf(fid,'<H3>Files received</H3>');
    217221
     222%================== Statistics for past month ================
    218223for 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
     253end; %for iimg
     254% -----------------------------------------------------------
    243255
    244256%%% Last 24h
     
    260272
    261273   %===================== 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
    262281
    263282        if datenum(dateStr, 'yyyymmdd')+8/24<now
     
    363382end %for day
    364383
    365 
    366 
    367384footer_fun(fid);
    368385fclose(fid);
    369386
     387%-------------------------------------------------------------------------------------------------
     388%------------------------------------------ HTML End ---------------------------------------------
     389%-------------------------------------------------------------------------------------------------
     390
    370391end % function
Note: See TracChangeset for help on using the changeset viewer.