Changeset 4882


Ignore:
Timestamp:
07/06/12 15:54:34 (6 years ago)
Author:
paulf
Message:

added in Quiet parameter option to shut the thing up when gaps and overlaps are seen

Location:
trunk/src/seismic_processing/decimate
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/seismic_processing/decimate/decimate.d

    r1459 r4882  
    1010                                 # 2 -> log to file but not to stderr/stdout 
    1111#Debug                           # Write out debug messages (optional) 
     12 
     13#Quiet                           # Turn off gap and overlap messages to stderr (optional) 
    1214 
    1315 
  • trunk/src/seismic_processing/decimate/decimate.h

    r1460 r4882  
    114114  int   debug;                          /* Write out debug messages?    */ 
    115115                                        /*   ( 0 = No, 1 = Yes )        */ 
     116  int   quiet;                          /* SHUT UP: don't warn me about gaps/overlaps to stderr */ 
     117                                        /*   ( 0 = No (default), 1 = Yes )        */ 
    116118  int   minTraceBufLen;                 /* Length of smallest TRACEBUF  */ 
    117119  int   cleanStart;                     /* Clean Start flag             */ 
  • trunk/src/seismic_processing/decimate/filtdecim.c

    r4139 r4882  
    7575  int ret, i; 
    7676  int datasize, outBufLen; 
     77  char logit_str[3]; 
     78 
     79  strcpy(logit_str, "et"); 
     80  if (pDcm->dcmParam.quiet)  
     81  { 
     82    strcpy(logit_str, "t"); /* just logit to logfile, not to stderr */ 
     83  } 
    7784   
    7885  /* Set some useful pointers */ 
     
    100107         pDcm->dcmParam.maxGap ) 
    101108    { 
    102       logit("et", "decimate: gap in data for <%s.%s.%s.%s>:\n" 
     109      logit(logit_str, "decimate: gap in data for <%s.%s.%s.%s>:\n" 
    103110            "\tlast end: %lf this start: %lf; resetting\n", 
    104111            pSta->inSta, pSta->inChan, pSta->inNet, pSta->inLoc,  
     
    108115    else if (inBuf->trh2.starttime < pSta->inEndtime) 
    109116    { 
    110       logit("et", "decimate: overlapping times for <%s.%s.%s.%s>:\n" 
     117      logit(logit_str, "decimate: overlapping times for <%s.%s.%s.%s>:\n" 
    111118            "\tlast end: %lf this start: %lf; resetting\n", 
    112119            pSta->inSta, pSta->inChan, pSta->inNet, pSta->inLoc,  
  • trunk/src/seismic_processing/decimate/initpars.c

    r1459 r4882  
    9393  pDcm->dcmParam.heartbeatInt   = 15; 
    9494  pDcm->dcmParam.debug          = 0; 
     95  pDcm->dcmParam.quiet          = 0; 
    9596  pDcm->dcmParam.logSwitch      = 1; 
    9697  pDcm->dcmParam.minTraceBufLen = 10; 
  • trunk/src/seismic_processing/decimate/readcnfg.c

    r1459 r4882  
    343343      { 
    344344        pDcm->dcmParam.debug = 1; 
     345      } 
     346      else if (k_its( "Quiet") )    /* Optional */ 
     347      { 
     348        pDcm->dcmParam.quiet = 1; 
    345349      } 
    346350       
Note: See TracChangeset for help on using the changeset viewer.