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

proceeding with tidofi test sequence

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: 1842
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent e2b5caaa
# ---------------------------------------
#
# $Id: Makefile,v 1.27 2005-07-07 13:08:06 tforb Exp $
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.28 2005-07-11 14:29:34 tforb Exp $
#
# Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)
#
# time series waveform filters
#
# Makefile fuer tools /src/ts/wf
#
# 22/01/2001 introduced smoos and did some "tidy up"
# 24/10/2001 introduced siggen
# 24/05/2001 introduced tsfilt
#
# REVISIONS and CHANGES
# 11/07/2005 V1.0 Thomas Forbriger
#
# ============================================================================
#
# ---------------------------------------
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
......@@ -27,13 +35,19 @@ CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)
gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
@rm $(<:.f=.c)
flist: $(wildcard *.f *.inc Makefile *.cc); echo $^ | tr ' ' '\n' | sort > $@
all:
.PHONY: clean
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist *.o *.xxx.*
flist: $(wildcard *.f *.inc Makefile *.cc)
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<
clean:
-/bin/rm *.o *.bak
tsfilt: tsfilt.o
$(CC) $(CFLAGS) $< -o $@ -lseife -ltf \
$(F2CLIB) -L$(LOCLIBDIR) -static
......@@ -74,3 +88,52 @@ P%.sff: %.sff; evelo $< $@ -P
RVAL=0.
%.ps: %.sff; stuplo -d $@/ps -R $(RVAL) $<
%.psp: %.ps; gv $<; /bin/rm -fv $<
#======================================================================
# test section
#----------------------------------------------------------------------
# test tidofi against stufi
sig.xxx.sff: ;siggen 13 $@
lpb.t.xxx.fil lpb.s.xxx.fil: ; echo -e "DBG 0\nlpb 0.05,5\nend" > $@
hpb.t.xxx.fil hpb.s.xxx.fil: ; echo -e "DBG 0\nhpb 0.05,5\nend" > $@
lp2.t.xxx.fil lp2.s.xxx.fil: ; echo -e "DBG 0\nlp2 0.2,0.707\nend" > $@
hp2.t.xxx.fil hp2.s.xxx.fil: ; echo -e "DBG 0\nhp2 0.2,0.707\nend" > $@
lp1.t.xxx.fil lp1.s.xxx.fil: ; echo -e "DBG 0\nlp1 0.2\nend" > $@
hp1.t.xxx.fil hp1.s.xxx.fil: ; echo -e "DBG 0\nhp1 0.2\nend" > $@
fac.t.xxx.fil fac.s.xxx.fil: ; echo -e "DBG 0\nfac 10.\nend" > $@
add.t.xxx.fil add.s.xxx.fil: ; echo -e "DBG 0\nadd 10.\nend" > $@
rev.t.xxx.fil rev.s.xxx.fil: ; echo -e "DBG 0\nrev 0\nend" > $@
dif.t.xxx.fil dif.s.xxx.fil: ; echo -e "DBG 0\ndif 0\nend" > $@
int.t.xxx.fil int.s.xxx.fil: ; echo -e "DBG 0\nint 0\nend" > $@
avg.t.xxx.fil avg.s.xxx.fil: ; echo -e "DBG 0\navg 0\nend" > $@
tre.t.xxx.fil tre.s.xxx.fil: ; echo -e "DBG 0\ntre 0\nend" > $@
han.t.xxx.fil: ; echo -e "DBG 0\nhan 0\nend" > $@
han.s.xxx.fil: ; echo -e "DBG 0\nsis 1,2000000\nend" > $@
%.xxx.rules: Makefile
( echo "%.$(patsubst %.xxx.rules,%,$@).s.xxx.sff:" \
" %.xxx.sff $(patsubst %.xxx.rules,%,$@).s.xxx.fil"; \
echo -e '\tstufi $$(word 2,$$^) -v -o $$< ' \
'>$$(patsubst %.sff,%.out,$$@) 2>&1'; \
echo -e '\t/bin/mv -fv $$<.sfi $$@'; \
echo "%.$(patsubst %.xxx.rules,%,$@).t.xxx.sff:" \
" %.xxx.sff $(patsubst %.xxx.rules,%,$@).t.xxx.fil"; \
echo -e '\ttidofi -cf $$(word 2,$$^)' \
'-v -o $$@ $$< ' \
'>$$(patsubst %.sff,%.out,$$@) 2>&1' ) > $@
FILTERS=lp2 hp2 lp1 hp1 fac add rev dif int avg tre hpb lpb han
include $(addsuffix .xxx.rules,$(FILTERS))
REF=sig.xxx.sff
cmp.%.ps: %.s.xxx.sff %.t.xxx.sff $(REF)
stuplo -d $@/cps -C -t -s x -i -c fT -l 3,2,1 -h 1.,1.2,1.4,1.2 \
-Y 0.8 -V -X "Zeit (s)" \
$(word 1,$^) nc: $(word 2,$^) nc: $(word 3,$^) $^
%.psp: %.ps; gv $<; /bin/rm -fv $<
# ----- END OF Makefile -----
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tidofi.cc,v 1.7 2005-07-08 07:07:59 tforb Exp $
* $Id: tidofi.cc,v 1.8 2005-07-11 14:29:34 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.7 2005-07-08 07:07:59 tforb Exp $"
"$Id: tidofi.cc,v 1.8 2005-07-11 14:29:34 tforb Exp $"
#include <iostream>
#include <fstream>
......@@ -385,7 +385,7 @@ int main(int iargc, char* argv[])
TFXX_debug(opt.debug, "main",
" series and WID are written");
if (is.hasinfo()) { sff::INFO info; is >> info; os << info; }
if (is.hasfree())
if (is.hasfree() || true)
{
sff::FREE tracefree;
is >> tracefree;
......
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