Changeset 7763


Ignore:
Timestamp:
02/04/19 09:57:33 (3 months ago)
Author:
stefan
Message:

added new UseEarliestPhaseTime? feature

Location:
trunk/src/reporting/ewhtmlemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reporting/ewhtmlemail/ewhtmlemail.c

    r7744 r7763  
    3535/* 1.2.4 - 2018-11-21 - set Google Earth Markers max to plot on map to 20, 25 seems to work infrequently */ 
    3636/* 1.2.5 - 2019-01-28 - added colspan directives to waveform google charts, Roberto Mirabella  suggestion */ 
    37  
    38 #define VERSION_STR "1.2.5 - 2019-01-28" 
     37/* 1.2.6 - 2019-02-04 - added UseEarliestPhaseTime for waveform start */ 
     38 
     39#define VERSION_STR "1.2.6 - 2019-02-04" 
    3940 
    4041#define MAX_GE_MARKERS 20 
     
    210211static double     center_lat = 0.0;  // for distance check from center point 
    211212static double     center_lon = 0.0;  // for distance check from center point 
     213static int        UseEarliestPhaseTime = 0; 
    212214 
    213215 
     
    868870            decoded_secret = b64_decode (GE_secret, strlen((const char *)GE_secret)); 
    869871         } 
     872         else if ( k_its("UseEarliestPhaseTime") )  // optional instead of OT for start 
     873         { 
     874            UseEarliestPhaseTime = 1; 
     875         } 
    870876         else if ( k_its("EmailProgram") ) 
    871877         { 
     
    19101916         ******************************/ 
    19111917        starttime -= GSEC1970;          // Correct for epoch 
     1918        if (UseEarliestPhaseTime) { 
     1919                starttime = arrivalTimes[0]; 
     1920        } 
    19121921        starttime -= TimeMargin;        // Add time margin 
    19131922        endtime -= GSEC1970;            // Correct for epoch 
  • trunk/src/reporting/ewhtmlemail/ewhtmlemail.d

    r7565 r7763  
    191191 TimeMargin     10.0 
    192192  
     193 # optional flag - set this flag to use earliest phase for start of trace, not Origin Time 
     194 UseEarliestPhaseTime 
     195  
    193196 
    194197 # MaxDuration - is the maximum duration of the trace from origin_time - TimeMargin to endtime+ TimeMargin 
Note: See TracChangeset for help on using the changeset viewer.