Commit 7b4fe7af authored by thomas.forbriger's avatar thomas.forbriger
Browse files

tidofi [FIX]: actually pass results to output file

parent 21d5de65
...@@ -531,7 +531,29 @@ int main(int iargc, char* argv[]) ...@@ -531,7 +531,29 @@ int main(int iargc, char* argv[])
=prefiltertaper.taper(offset, t0, T); =prefiltertaper.taper(offset, t0, T);
taper.apply(series); taper.apply(series);
} }
series=filter(Ttimeseries(series, wid2.dt), opt.debug); Ttimeseries filterseries(series, wid2.dt);
TFXX_debug(opt.debug, "main",
TFXX_value(filterseries.header.dt)
<< " " <<
TFXX_value(filterseries.f())
<< " " <<
TFXX_value(filterseries.l())
<< " " <<
TFXX_value(filterseries.size())
);
filterseries=filter(filterseries, opt.debug);
wid2.dt=filterseries.header.dt;
series=filterseries;
wid2.nsamples=series.size();
TFXX_debug(opt.debug, "main",
TFXX_value(filterseries.header.dt)
<< " " <<
TFXX_value(filterseries.f())
<< " " <<
TFXX_value(filterseries.l())
<< " " <<
TFXX_value(filterseries.size())
);
if (applypostfiltertaper) if (applypostfiltertaper)
{ {
// apply post-filter taper // apply post-filter taper
...@@ -554,7 +576,6 @@ int main(int iargc, char* argv[]) ...@@ -554,7 +576,6 @@ int main(int iargc, char* argv[])
{ {
if (opt.verbose) { std::cout << " passed unchanged" << std::endl; } if (opt.verbose) { std::cout << " passed unchanged" << std::endl; }
} }
wid2.nsamples=series.size();
os << wid2; os << wid2;
TFXX_debug(opt.debug, "main", TFXX_debug(opt.debug, "main",
" series and WID are written"); " series and WID are written");
......
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