Changeset 6855


Ignore:
Timestamp:
10/26/16 09:00:04 (3 years ago)
Author:
scott
Message:

Fixed scaling of PWL and BWL values for TRACEBUF

Location:
trunk/src/data_sources/tideweb2ew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_sources/tideweb2ew/tideweb2ew.c

    r6847 r6855  
    486486            trace2_hdr->starttime = round( trace2_hdr->starttime ); 
    487487        trace2_hdr->endtime = trace2_hdr->starttime + 60; 
    488  
     488     
    489489    if ( sendPrim ) { 
    490490        strcpy(trace2_hdr->loc,"00"); 
    491491        sprintf(sncl, "%s_%s_%s_%s", trace2_hdr->sta,trace2_hdr->net,trace2_hdr->chan,trace2_hdr->loc); 
    492         myTracePtr[0] = (tg_data->item[0].dataVal+0.5)/1000; 
     492        myTracePtr[0] = (tg_data->item[0].dataVal*1000)+0.5; 
    493493     
    494494        if ( tport_putmsg(&OutRegion, &DataLogo, (long) out_message_size, (char*)&trace_buffer) != PUT_OK) { 
     
    506506        strcpy(trace2_hdr->loc,"01"); 
    507507        sprintf(sncl, "%s_%s_%s_%s", trace2_hdr->sta,trace2_hdr->net,trace2_hdr->chan,trace2_hdr->loc); 
    508         myTracePtr[0] = tg_data->item[1].dataVal+0.5; 
     508        myTracePtr[0] = (tg_data->item[1].dataVal*1000)+0.5; 
    509509 
    510510        if ( tport_putmsg(&OutRegion, &DataLogo, (long) out_message_size, (char*)&trace_buffer) != PUT_OK) { 
  • trunk/src/data_sources/tideweb2ew/tideweb2ew.h

    r6841 r6855  
    2525#define TW2EW_DEATH_EW_CONFIG  5 
    2626 
    27 #define VER_NO "0.9.2 2016.10.17" 
     27#define VER_NO "0.9.3 2016.10.25" 
    2828/* keep track of version notes here */ 
    2929 
Note: See TracChangeset for help on using the changeset viewer.