Changeset 333
- Timestamp:
- 02/22/2011 11:38:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/source/seed_io/sfd2db.c
r311 r333 3 3 * ======== 4 4 * 5 * $Revision: 1 53 $, $Date: 2011-01-27 11:12:54 +0100 (Do, 27 Jan2011) $5 * $Revision: 172 $, $Date: 2011-02-18 11:35:16 +0100 (Fr, 18 Feb 2011) $ 6 6 * 7 7 * reads lines from sfdfile and creates commands to insert into sfdb database … … 60 60 TSyBoolean invhdr; /* invert header info in sfd entry */ 61 61 TSyBoolean baynet; /* convert SH to BH for Bayernnetz */ 62 TSyBoolean modgec2; /* modify gec2a and gec2b to gec2 */ 62 TSyBoolean modgec2; /* modify gec2a and gec2b to gec2 */ 63 TSyBoolean genesys; /* modify genesys stream names */ 63 64 TSyBoolean go; /* end tmpfile with insert statements with \g */ 64 65 … … 79 80 invhdr = pa_qspecified( "-invhdr" ); 80 81 baynet = pa_qspecified( "-baynet" ); 82 genesys = pa_qspecified( "-genesys" ); 81 83 go = pa_qspecified( "-go" ); 82 84 modgec2 = 1; … … 272 274 if (strncmp(descr.stream,"rotz-sh",7) == 0) descr.stream[5] = 'b'; 273 275 } /*endif*/ 276 if (genesys) { 277 char tmpstr[3]; 278 int tmplen; 279 /* store component */ 280 tmplen = strlen(descr.stream); 281 tmpstr[0] = descr.stream[tmplen-2]; 282 tmpstr[1] = descr.stream[tmplen-1]; 283 tmpstr[2] = '\0'; 284 if (strncmp(descr.stream,"han0-eh",7) == 0) { 285 strcpy( descr.stream, "han0d-dh" ); 286 strcat( descr.stream, tmpstr ); 287 } /*endif*/ 288 if (strncmp(descr.stream,"han3-eh",7) == 0) { 289 strcpy( descr.stream, "han3s-dh" ); 290 strcat( descr.stream, tmpstr ); 291 } /*endif*/ 292 } /*endif*/ 274 293 if (modgec2) { 275 294 char tmpstr[cBcLineLth+1];
Note: See TracChangeset
for help on using the changeset viewer.