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

finished first version

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: 1833
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 95afc8d3
# ---------------------------------------
#
# $Id: Makefile,v 1.26 2005-07-06 14:10:02 tforb Exp $
# $Id: Makefile,v 1.27 2005-07-07 13:08:06 tforb Exp $
#
# Makefile fuer tools /src/ts/wf
#
......@@ -58,9 +58,9 @@ phasedsignals hamres siggen smoos dise: %: %.o
newprog $@
gatherdiff autocorr cross tidofi fredofi sigfit: %: %.o
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -ldatreadxx -llinearxx \
$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lsffxx -ldatreadxx -llinearxx \
-ltsxx -ltfxx -lsffxx -lgsexx -ltime++ -laff \
-llapack -lblas -lg2c -lm\
-llapack -lblas -lcseife -lsffxx -lg2c -lm\
-L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS)
newprog $@
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tidofi.cc,v 1.5 2005-07-07 08:22:01 tforb Exp $
* $Id: tidofi.cc,v 1.6 2005-07-07 13:08:06 tforb Exp $
* \author Thomas Forbriger
* \date 17/02/2004
*
......@@ -19,7 +19,7 @@
#define TIDOFI_VERSION \
"TIDOFI V1.0 time domain filter"
#define TIDOFI_CVSID \
"$Id: tidofi.cc,v 1.5 2005-07-07 08:22:01 tforb Exp $"
"$Id: tidofi.cc,v 1.6 2005-07-07 13:08:06 tforb Exp $"
#include <iostream>
#include <fstream>
......@@ -103,6 +103,8 @@ int main(int iargc, char* argv[])
{"cs",arg_no,"-"},
// 5: input file format
{"t",arg_no,"sff"},
// 6: generate debug output
{"D",arg_no,"-"},
{NULL}
};
......@@ -138,6 +140,7 @@ int main(int iargc, char* argv[])
opt.commandfile=cmdline.string_arg(3);
opt.readstdin=cmdline.optset(4);
opt.inputformat=cmdline.string_arg(5);
opt.debug=cmdline.optset(6);
if (opt.verbose)
{ cout << TIDOFI_VERSION << endl << TIDOFI_CVSID << endl; }
......@@ -203,7 +206,9 @@ int main(int iargc, char* argv[])
/*----------------------------------------------------------------------*/
// strip comments etc from filter commands
// and create filter object
sff::FREE commands;
ts::filter::FilterCollection filter;
{
sff::FREE::Tlines::const_iterator line=filtercommands.lines.begin();
while (line != filtercommands.lines.end())
......@@ -223,6 +228,7 @@ int main(int iargc, char* argv[])
i=command.find(",",i+1);
}
commands.append(command);
filter.push_back(ts::filter::make_any_filter(command));
}
++line;
}
......@@ -355,7 +361,23 @@ int main(int iargc, char* argv[])
{
if (opt.verbose)
{ std::cout << " process trace #" << itrace << std::endl; }
is.skipseries();
Tseries series;
is >> series;
sff::WID2 wid2;
is >> wid2;
filter(Ttimeseries(series, wid2.dt));
os << series;
os << wid2;
if (is.hasinfo()) { sff::INFO info; is >> info; os << info; }
if (is.hasfree())
{
sff::FREE tracefree;
is >> tracefree;
tracefree.append(TIDOFI_VERSION);
tracefree.append("read from file " + infile->name);
tracefree.append(commands);
os << tracefree;
}
}
else
{
......
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