Ignore:
Timestamp:
12/01/2009 07:56:45 AM (13 years ago)
Author:
marcus
Message:

r101 | svn | 2009-11-27 11:48:20 +0100 (Fr, 27 Nov 2009) | 1 line

code for renaming gec2a,gec2b to gec2; added some station info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/seed_io/sfd2db.c

    r41 r172  
    33 *      ======== 
    44 * 
    5  * $Revision: 26 $, $Date: 2008-02-11 16:00:39 +0100 (Mo, 11 Feb 2008) $ 
     5 * $Revision: 101 $, $Date: 2009-11-27 11:48:20 +0100 (Fr, 27 Nov 2009) $ 
    66 * 
    77 * reads lines from sfdfile and creates commands to insert into sfdb database 
     
    5858        TSyBoolean invhdr;                  /* invert header info in sfd entry */ 
    5959        TSyBoolean baynet;                  /* convert SH to BH for Bayernnetz */ 
     60    TSyBoolean modgec2;                 /* modify gec2a and gec2b to gec2 */ 
    6061        TSyBoolean go;                      /* end tmpfile with insert statements with \g */ 
    6162 
     
    7778        baynet = pa_qspecified( "-baynet" ); 
    7879        go = pa_qspecified( "-go" ); 
     80        modgec2 = 1; 
    7981 
    8082        if  (noignore)  { 
     
    268270                        if  (strncmp(descr.stream,"rotz-sh",7) == 0)  descr.stream[5] = 'b'; 
    269271                } /*endif*/ 
     272                if  (modgec2)  { 
     273                        char tmpstr[cBcLineLth+1]; 
     274                        if  (strncmp(descr.stream,"gec2a",5) == 0 
     275                                || strncmp(descr.stream,"gec2b",5) == 0)  { 
     276                                strcpy( tmpstr, descr.stream+5 ); 
     277                                strcpy( descr.stream+4, tmpstr ); 
     278                        } /*endif*/ 
     279                } /*endif*/ 
    270280 
    271281                /* parse stream string */ 
Note: See TracChangeset for help on using the changeset viewer.