Commit 4311b991 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

ts/wf/teseco [FIX]: make use of datetolerance

The parameter datetolerance was not used when comparing the start time of
signals.
parent e688b4f0
......@@ -8,7 +8,7 @@
*
* time series corrections
*
* Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
* Copyright (c) 2005, 2016 by Thomas Forbriger (BFO Schiltach)
*
* ----
* This program is free software; you can redistribute it and/or modify
......@@ -31,11 +31,12 @@
* - 13/11/2012 V1.1 support additional file formats
* - 30/07/2015 V1.2 provide option -datetolerance
* - 28/11/2016 V1.3 allow scaling of signal
* - 29/11/2016 V1.4 fix: make use of datetolerance
*
* ============================================================================
*/
#define TESECO_VERSION \
"TESECO V1.3 time series corrections"
"TESECO V1.4 time series corrections/ linear combination of signals"
#include <fstream>
#include <sstream>
......@@ -313,6 +314,7 @@ int main(int iargc, char* argv[])
cerr << "correction signal:" << endl;
cerr << wid2.line();
sff::WID2compare cmpdate(sff::Fdate);
cmpdate.setdatetolerance(opt.datetolerance);
if (!cmpdate(isig->header.wid2(),wid2))
{
cerr << "*** date mismatch "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment