Commit ae333cef authored by thomas.forbriger's avatar thomas.forbriger
Browse files

ts/wf [FEATURE]: provide test case for cross-correlation

parent 96288ece
......@@ -50,7 +50,7 @@ edit: flist; vim $<
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist *.xxx *.xxx.* *.sff *.TZ *.TR *.grn *.su *.bin
-/bin/rm -vf *.ps *.pdf *.asc *.ascii
-/bin/rm -vf *.ps *.pdf *.asc *.ascii
#----------------------------------------------------------------------
......@@ -134,6 +134,12 @@ convolution%.ps: Makefile.convolution
#----------------------------------------------------------------------
# test cross-correlation
cross%.ps: Makefile.crosscorrelation
$(MAKE) -f $< $@
#----------------------------------------------------------------------
%.psp: %.ps; gv $<; /bin/rm -fv $<
%.pdf: %.ps; ps2pdf $<
%.rw.ps: %.ps; gs -sDEVICE=pswrite -dNOPAUSE -dBATCH -sOutputFile=$@ $<
......
# this is <Makefile.crosscorrelation>
# ----------------------------------------------------------------------------
#
# Copyright (c) 2016 by Thomas Forbriger (BFO Schiltach)
#
# test correlation operation
#
# REVISIONS and CHANGES
# 17/11/2016 V1.0 Thomas Forbriger
#
# ============================================================================
#
FILETYPE=ascii
DT=0.1
noise.raw.$(FILETYPE):
siggenx 14 $@ -v -o -ot $(FILETYPE) -a 1 -T 500. -d $(DT)
sin3.raw.$(FILETYPE):
siggenx 3 $@ -v -o -ot $(FILETYPE) -a 1 -T 50. -Ta 10. -Te 15. -d $(DT)
box.raw.$(FILETYPE):
siggenx 8 $@ -v -o -ot $(FILETYPE) -a 1 -T 50. -Ta 10. -n 500 -d $(DT)
delta.raw.$(FILETYPE):
siggenx 8 $@ -v -o -ot $(FILETYPE) -a 1 -T 50. -Ta 10. -n 1 -d $(DT)
STDDATE=2016/07/12 08:30:00
DATEDEL=80
DELDATE=$(shell date -d '$(STDDATE) $(DATEDEL) seconds' +'%Y/%m/%d %H:%M:%S')
%.std.$(FILETYPE): %.raw.$(FILETYPE)
sehefixx $< $@.xxx --verbose --overwrite \
--itype $(FILETYPE) --otype $(FILETYPE) -st "$(STDDATE)"
cooset -v -o --itype $(FILETYPE) --otype $(FILETYPE) -sot "$(STDDATE)" \
$@.xxx $@
%.alt.$(FILETYPE): %.raw.$(FILETYPE)
sehefixx $< $@.xxx --verbose --overwrite \
--itype $(FILETYPE) --otype $(FILETYPE) -st "$(DELDATE)"
cooset -v -o --itype $(FILETYPE) --otype $(FILETYPE) -sot "$(STDDATE)" \
$@.xxx $@
%.del.$(FILETYPE): %.$(FILETYPE)
printf "del 20.\nend\n" | tidofi -v -o -cs \
-type $(FILETYPE) -Type $(FILETYPE) $@ $<
%d.cross.$(FILETYPE): %.std.$(FILETYPE) %.std.del.$(FILETYPE)
cross -v -o --itype $(FILETYPE) --otype $(FILETYPE) \
$^ $@
%.cross.$(FILETYPE): %.std.$(FILETYPE) %.std.del.$(FILETYPE) \
%.alt.$(FILETYPE) %.alt.del.$(FILETYPE)
cross -v -o --itype $(FILETYPE) --otype $(FILETYPE) -D \
$^ $@
%rev.cross.$(FILETYPE): %.alt.del.$(FILETYPE) %.alt.$(FILETYPE) \
%.std.del.$(FILETYPE) %.std.$(FILETYPE)
cross -v -o --itype $(FILETYPE) --otype $(FILETYPE) \
$^ $@
cross_files_%.ps: %.std.$(FILETYPE) %.std.del.$(FILETYPE) \
%.alt.$(FILETYPE) %.alt.del.$(FILETYPE)
stuplox -g -c dta -ty $(FILETYPE) -a -t -g \
-s x -i -d $@/cps -Y 0.8 -N -C -l 1,2,4 $^
cross_%.ps: %.cross.$(FILETYPE)
stuplox -g -c dta -ty $(FILETYPE) -X 'lag / s' -st -g \
-s x -i -d $@/cps -Y 0.8 -N -C -l 1,2,4 $<
%.ps: %.$(FILETYPE)
stuplox -st -g -c dta -ty $(FILETYPE) -E -d $@/cps \
-Y 0.8 -N -C -l 1,2,4 $<
%.psp: %.ps; gv $<; /bin/rm -fv $<
# ----- END OF Makefile.crosscorrelation -----
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