Changeset 445 in ETALON


Ignore:
Timestamp:
Mar 31, 2016, 5:55:20 PM (9 years ago)
Author:
malovyts
Message:

Changed order of data rows and fixed SOLEIL status plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SPESO/ana2015/analyse_day.m

    r433 r445  
    169169analyse_dayInfo(dateStr, 200);
    170170
     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
    171182%%% HTML file
    172183
    173184
    174 % page for each hour
     185% ================================== page for 00 - 23 hours ==========================
    175186    for ihour=0:23
    176187      %ihour=24 => full day
     
    221232        analyse_day_html_generalFooter(fid);   
    222233    end %for each hour
    223 
    224 % daily pages
    225 % page for general info
     234% --------------------------------- page for 00 - 23 hours ------------------------------
     235
     236% ============================== page for general info ==================================
    226237        fhtmlname_general=[ plots_basedir dateStr  '/'  'info_daily.html' ];
    227238       
    228239        titleStr = [ 'SPESO - 1-day - ' dateStr ];
    229        
     240
     241        % HEADER       
    230242        fid=analyse_day_html_generalHeader(fhtmlname_general, titleStr, dateStr);
    231         fprintf(fid,'<HR>');
     243
     244        fprintf(fid,'<HR>'); % -------------------------------------------
    232245        fprintf(fid,[ '<BR/> nData= ' num2str(nDataNum)...
    233246                      ' / nShots= ' num2str(nShots)...
     
    235248        fprintf(fid,'<HR>');% ---------------------------------------------------
    236249        %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 =============================
    237273        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 ===================================
    239291        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]
    241299             fprintf(fid,'<tr>');
    242300                for ifig=[201+irow*4:204+irow*4]
    243301                   imgname=[ 'analysis_figure_' num2str(ifig) '.png' ];
    244302                   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' ] );
    246306                   fprintf(fid,'<td>');
    247307                end % for each figure
     
    249309        end; % irow
    250310        fprintf(fid,'</table>');
     311
     312        % ----------------------------------- end table  ------------------------------------
    251313       
    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 figure
    257         end %if nFullShots>0
    258314        fprintf(fid,'<HR>');% ---------------------------------------------------
    259315
    260316        analyse_day_html_generalFooter(fid);
    261 % page with hourly plots
     317% --------------------------------- end daily general info ---------------------------------
     318
     319% =============================== page with hourly plots ===================================
    262320        fhtmlname_hours=[ plots_basedir dateStr  '/'  'info_daily_hours.html' ];
    263321       
     
    276334
    277335        analyse_day_html_generalFooter(fid);
    278 
    279 % page with shot tables
     336% -------------------------------- end hourly plot -----------------------------------------
     337
     338% ============================== page with shot tables ======================================
    280339        fhtmlname_tables=[ plots_basedir dateStr  '/'  'info_daily_tables.html' ];
    281340
     
    319378
    320379        analyse_day_html_generalFooter(fid);
    321 
    322 % page for shots
     380% -------------------------------- end page with table of shots --------------------------------
     381
     382% ===================================== page for shots ========================================
    323383
    324384        fhtmlname_shots=[ plots_basedir dateStr  '/'  'info_daily_shots.html' ];
     
    336396
    337397        analyse_day_html_generalFooter(fid);
    338 
     398% ------------------------------------ end page with shots -------------------------------------
    339399
    340400
Note: See TracChangeset for help on using the changeset viewer.