Changeset 4189


Ignore:
Timestamp:
04/15/11 03:53:48 (10 years ago)
Author:
rluis
Message:

Fixed error with location agency code

Location:
trunk/src/data_exchange/seisan_report
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_exchange/seisan_report/makefile.ux

    r4088 r4189  
    88 
    99EW = $L/logit.o  $L/kom.o  $L/rw_mag.o $L/time_ew.o $L/getutil.o $L/sleep_ew.o \ 
    10      $L/transport.o $L/read_arc.o $L/chron3.o $L/fleng.o 
     10     $L/transport.o $L/read_arc.o $L/chron3.o $L/fleng.o  
    1111 
    1212all: $B/seisan_report 
    1313 
    1414$B/seisan_report: ${EW} seisan_report.o 
    15         cc -o $@ $^ -lm 
     15        cc -o $@ $^ -lm -lpthread 
    1616 
    1717# Clean-up rules 
  • trunk/src/data_exchange/seisan_report/seisan_report.c

    r4181 r4189  
    446446 
    447447    /* Write line type 1 */ 
    448     fprintf(fp_s, " %4d %2d%2d %2d%2d %4.1f R %7.3f%8.3f%5.1f %3s %3d%4.1f ", 
     448    fprintf(fp_s, " %4d %2d%2d %2d%2d %4.1f R %7.3f%8.3f%5.1f  %3s%3d%4.1f ", 
    449449            ot.year, ot.month, ot.day, ot.hour, ot.minute, ot.second, ep->hyp.lat, 
    450450            ep->hyp.lon, ep->hyp.z, Agency, ep->nphase, ep->hyp.rms); 
     
    471471 
    472472    /* RSL 2011.03: Write special comment line with the binder ID */ 
    473     fprintf(fp_s," BINDERID: %010d                                                          3\n", ep->hyp.qid); 
     473    fprintf(fp_s," BINDERID: %10d                                                          3\n", ep->hyp.qid); 
    474474 
    475475    /* RSL 2011.03: Skip this part if using reference to mseed archives */ 
     
    568568                (UseMSEEDArchive==1)?"BUD":"SCP", 
    569569                ep->pha[i].site, ep->pha[i].comp, ep->pha[i].net,  
    570                 strcmp(ep->pha[i].loc,"--")?"  ":ep->pha[i].loc, 
     570                (strcmp(ep->pha[i].loc,"--") == 0)?"  ":ep->pha[i].loc, 
    571571                rt.year, rt.month, rt.day, rt.hour, rt.minute, (int) rt.second, 
    572572                refDuration); 
Note: See TracChangeset for help on using the changeset viewer.