Changeset 97


Ignore:
Timestamp:
02/18/2009 08:23:22 AM (14 years ago)
Author:
marcus
Message:

r78 | svn | 2009-02-06 18:22:20 +0100 (Fr, 06 Feb 2009) | 1 line

additional python evt check, currently for double phases only

Location:
SH_SHM/trunk/util
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/util/check_evt.c

    r89 r97  
    9898        EvStatusT status;                  /* return status */ 
    9999        int       i;                       /* counter */ 
     100    char      tmpstr[cBcLongStrLth+1]; /* scratch string */ 
    100101 
    101102        /* executable code */ 
     
    128129        EvReformatEventfile( infile, outfile, EvGetEvent, 
    129130                EfPutCheck, &status ); 
     131 
     132    /* now call the Python script for additional checks */ 
     133    if  (strcmp(outfile,"TT") == 0)  { 
     134        sprintf( tmpstr, "%s/CheckEvt.py %s", getenv("SH_UTIL"), efv_infile ); 
     135        system( tmpstr ); 
     136    } else { 
     137        sprintf( tmpstr, "%s/CheckEvt.py %s %s", getenv("SH_UTIL"), 
     138            efv_infile, outfile ); 
     139        system( tmpstr ); 
     140    } /*endif*/ 
    130141 
    131142        return 0; 
     
    188199        if  (is_pkp_phase) 
    189200                efv_foundTele = TRUE; 
     201 
     202    /* is this a leftover from an amplitude measurement? */ 
     203    if  (strncmp(event->phase,"w-",2) == 0) 
     204                fprintf( out, "F012 %s: illegal phase %s found on %s\n", 
     205                        efv_infile, event->phase, event->station ); 
     206         
    190207 
    191208        /* a depth phase can found only in teleseismic events */ 
Note: See TracChangeset for help on using the changeset viewer.