USE_JAG = yes
include ${SEPINC}/SEP.top
RESDIR  = ../Fig
data    = ../Data
RESULTSCR = out

TA2VPLOT = Ta2vplot > /dev/null title=" " wantaxis=0
BYTE = Byte
PIPE = > junk.A; <junk.A 

infile  = gulfWindow.HH
infile  = ${data}/gulfAntiRaw.H
outfile = ./out.H

.PHONY : window
window : ${data}/gulfWindow.HH

gulfWindow.HH : ${data}/gulfAntiRaw.H
	Window <${data}/gulfAntiRaw.H > gulfWindow.HH \
	n1=4 n2=40 n3=40 out=stdout

${RESDIR}/out.v : ${infile}
	${JAVAX} ${PACKAGE}.NonStationaryPefFilter in=${infile} out=${outfile} overlap=0.3 tol=1e-7
	<${infile}  ${BYTE} ${PIPE} ${TA2VPLOT} title=input    out=inpt.v3
	<${outfile} ${BYTE} ${PIPE} ${TA2VPLOT} title=filtered out=outpt.v3
	<${infile}  Window n3=1 f3=20                      > iput.H
	<${outfile} Window n3=1 f3=20                      > oput.H
	<iput.H     ${BYTE} ${PIPE} ${TA2VPLOT} out=iput.v > junk.V 
	<oput.H     ${BYTE} ${PIPE} ${TA2VPLOT} out=oput.v > junk.V 
	vp_SideBySideAniso iput.v oput.v                   > ${RESDIR}/out.v

default : ${RESDIR}/out.v 
	tube  inpt.v3 &
	tube outpt.v3 &

#Byte  < weight.H > junk.H
#Cubeplot movie=1 < junk.H | Tube


clean : jclean

include ${SEPINC}/SEP.bottom