Commit 8d40a75e authored by thomas.forbriger's avatar thomas.forbriger
Browse files

ts/wf/cross [WP]: correctly handle WID2 header

Fields of WID2 struct in ts::sff::TraceHeader are not provided for direct
write access.
parent 39aeaed8
......@@ -273,17 +273,17 @@ int main(int iargc, char* argv[])
TFXX_assert((data.header.wid2().dt == reference.header.wid2().dt),
"sampling intervals do not match!");
Tts result(data);
sff::WID2 wid2line(data.header.wid2());
if (opt.convolve)
{
result=ts::convolve(reference,data);
result.header=data.header;
result.header.wid2().auxid="corr";
wid2line.auxid="corr";
} else {
result=ts::correlate(reference,data);
result.header=data.header;
result.header.wid2().auxid="conv";
wid2line.auxid="conv";
}
// result *= result.header.dt;
result *= wid2line.dt;
result.header.wid2(wid2line);
/*
result.header.wid2().date=fileheader.srce.date
+(result.series.first()
......
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