Commit eb78ffc5 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

skip special words

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2154
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent b534532b
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: mseedread.cc,v 1.22 2006-07-07 09:20:43 tforb Exp $
* $Id: mseedread.cc,v 1.23 2006-07-10 08:29:02 tforb Exp $
* \author Thomas Forbriger
* \date 15/07/2004
*
......@@ -36,13 +36,14 @@
* - provide explicit conversion of BTIME fields
* - 09/05/2006 V1.3 use general Steim 1 and 2 code
* - 07/07/2006 V1.4 provide debug function when reading MiniSEED record
* - 10/07/2006 V1.5 skip special words within data stream
*
* ============================================================================
*/
#define TF_MSEEDREAD_CC_VERSION \
"TF_MSEEDREAD_CC V1.4"
#define TF_MSEEDREAD_CC_CVSID \
"$Id: mseedread.cc,v 1.22 2006-07-07 09:20:43 tforb Exp $"
"$Id: mseedread.cc,v 1.23 2006-07-10 08:29:02 tforb Exp $"
#include <string>
#include <string.h>
......@@ -323,11 +324,12 @@ namespace datread {
}
while (rframe.valid() && (isample < nsamples))
{
sum += rframe.diff();
Mdata(isample)=sum;
// std::cout << "sample #" << isample << ": " << sum
// << " dif=" << rframe.diff() << std::endl;
++isample;
if (rframe.ctrl() != SEED::SteimFrame::Fspecial)
{
sum += rframe.diff();
Mdata(isample)=sum;
++isample;
}
rframe.next();
}
pdata += SEED::SteimFrame::blocksize;
......
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