elf.3D.000to092.H:
#	Math file1=elf.3D.mig_adj.000.H file2=elf.3D.mig_adj.004.H file3=elf.3D.mig_adj.008.H file4=elf.3D.mig_adj.012.H file5=elf.3D.mig_adj.016.H file6=elf.3D.mig_adj.020.H file7=elf.3D.mig_adj.024.H file8=elf.3D.mig_adj.028.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > f1.H
#	Math file1=elf.3D.mig_adj.032.H file2=elf.3D.mig_adj.036.H file3=elf.3D.mig_adj.040.H file4=elf.3D.mig_adj.044.H file5=elf.3D.mig_adj.048.H file6=elf.3D.mig_adj.052.H file7=elf.3D.mig_adj.056.H file8=elf.3D.mig_adj.060.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > f2.H
#	Math file1=elf.3D.mig_adj.064.H file2=elf.3D.mig_adj.068.H file3=elf.3D.mig_adj.072.H file4=elf.3D.mig_adj.076.H file5=elf.3D.mig_adj.080.H file6=elf.3D.mig_adj.084.H file7=elf.3D.mig_adj.088.H file8=elf.3D.mig_adj.092.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > f3.H;Cp f3.H f31.H;Rm f3.H
#	Math file1=f1.H file2=f2.H file3=f31.H exp=file1+file2+file3 maxsize=2000 > $@

#f2.H:
#	Math file1=elf.3D.mig_adj.032.H file2=elf.3D.mig_adj.036.H file3=elf.3D.mig_adj.040.H file4=elf.3D.mig_adj.044.H file5=elf.3D.mig_adj.048.H file6=elf.3D.mig_adj.052.H file7=elf.3D.mig_adj.056.H file8=elf.3D.mig_adj.060.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@

#f3.H:
#	Math file1=elf.3D.mig_adj.064.H file2=elf.3D.mig_adj.068.H file3=elf.3D.mig_adj.072.H file4=elf.3D.mig_adj.076.H file5=elf.3D.mig_adj.080.H file6=elf.3D.mig_adj.084.H file7=elf.3D.mig_adj.088.H file8=elf.3D.mig_adj.092.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@
	

#	Math file1=elf.3D.mig_adj.096.H file2=elf.3D.mig_adj.100.H file3=elf.3D.mig_adj.108.H file4=elf.3D.mig_adj.112.H file5=elf.3D.mig_adj.116.H file6=elf.3D.mig_adj.120.H file7=elf.3D.mig_adj.124.H file8=elf.3D.mig_adj.128.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > f4.H


elf.3D.096to188.H:
#	nohup Math file1=elf.3D.mig_adj.096.H  file2=elf.3D.mig_adj.100.H  file3=elf.3D.mig_adj.108.H  file4=elf.3D.mig_adj.112.H  file5=elf.3D.mig_adj.116.H  file6=elf.3D.mig_adj.120.H  file7=elf.3D.mig_adj.124.H  file8=elf.3D.mig_adj.128.H exp=file1+file2+file3+file4+file5+file6+file7+file8 > f1.H
#	nohup Math file1=elf.3D.mig_adj.132.H  file2=elf.3D.mig_adj.136.H  file3=elf.3D.mig_adj.140.H  file4=elf.3D.mig_adj.144.H  file5=elf.3D.mig_adj.148.H  file6=elf.3D.mig_adj.152.H  file7=elf.3D.mig_adj.156.H  file8=elf.3D.mig_adj.160.H exp=file1+file2+file3+file4+file5+file6+file7+file8 > f2.H
	nohup Math file1=elf.3D.mig_adj.168.H  file2=elf.3D.mig_adj.176.H  file3=elf.3D.mig_adj.184.H  file4=elf.3D.mig_adj.188.H exp=file1+file2+file3+file4 > f3.H 
	nohup Math file1=f1.H file2=f2.H file3=f3.H exp=file1+file2+file3 > $@

#f1.H:
#	Math file1=elf.3D.mig_adj.192.H file2=elf.3D.mig_adj.196.H file3=elf.3D.mig_adj.200.H file4=elf.3D.mig_adj.204.H file5=elf.3D.mig_adj.208.H file6=elf.3D.mig_adj.212.H file7=elf.3D.mig_adj.216.H file8=elf.3D.mig_adj.220.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@ &

#f2.H:
#	Math file1=elf.3D.mig_adj.224.H file2=elf.3D.mig_adj.228.H file3=elf.3D.mig_adj.232.H file4=elf.3D.mig_adj.236.H file5=elf.3D.mig_adj.240.H file6=elf.3D.mig_adj.244.H file7=elf.3D.mig_adj.248.H file8=elf.3D.mig_adj.252.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@ &

#f3.H:
#	Math file1=elf.3D.mig_adj.256.H file2=elf.3D.mig_adj.260.H file3=elf.3D.mig_adj.264.H file4=elf.3D.mig_adj.268.H file5=elf.3D.mig_adj.272.H file6=elf.3D.mig_adj.276.H file7=elf.3D.mig_adj.280.H file8=elf.3D.mig_adj.284.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@ &

elf.3D.192to284.H:
	nohup Math file1=f1.H file2=f2.H file3=f3.H exp=file1+file2+file3 > $@ &

f1.H:
	Math file1=elf.3D.mig_adj.288.H file2=elf.3D.mig_adj.292.H file3=elf.3D.mig_adj.296.H file4=elf.3D.mig_adj.300.H file5=elf.3D.mig_adj.304.H file6=elf.3D.mig_adj.308.H file7=elf.3D.mig_adj.312.H file8=elf.3D.mig_adj.316.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@ &

f2.H:
	Math file1=elf.3D.mig_adj.320.H file2=elf.3D.mig_adj.324.H file3=elf.3D.mig_adj.328.H file4=elf.3D.mig_adj.332.H file5=elf.3D.mig_adj.336.H file6=elf.3D.mig_adj.340.H file7=elf.3D.mig_adj.344.H file8=elf.3D.mig_adj.348.H exp=file1+file2+file3+file4+file5+file6+file7+file8 maxsize=2000 > $@ &

f3.H:
	Math file1=elf.3D.mig_adj.104.H file2=elf.3D.mig_adj.172.H file3=elf.3D.mig_adj.180.H file4=elf.3D.mig_adj.352.H file5=elf.3D.mig_adj.356.H exp=file1+file2+file3+file4+file5 maxsize=2000 > $@ &

elf.3D.288to356.H:
	nohup Math file1=f1.H file2=f2.H file3=f3.H exp=file1+file2+file3 > $@ &

elf.3D.000to356.H:
	Math file1=elf.3D.000to092.H file2=elf.3D.096to188.H file3=elf.3D.192to284.H file4=elf.3D.288to356.H \
	exp=file1+file2+file3+file4 maxsize=2000 > $@ &

elf.3D.000to356.flt.H:
	< elf.3D.000to356.H Window3d min3=-300 n3=25 squeeze=n > x.H; < x.H Transp plane=15 > temp0.H
	< temp0.H ../Tese/bin/OW_t2d.x vel=elf.L7f.sinit.grid20.cam.H nt=350 > temp2.H
	< temp2.H Bandpass flo=4 fhi=40 | ../Tese/bin/OW_t2d.x vel=elf.L7f.sinit.grid20.cam.H adj=1 nz=300 | Window3d > $@

elf.3D.000to356.flt.int40.H:
#	Transp plane=34 < elf.3D.000to356.flt.H > temp00.H
#	< temp00.H Interp d2out=40 > temp01.H
#	< temp01.H Transp plane=23 > temp00.H
#	< temp00.H Interp d2out=40 > temp01.H
#	< temp01.H Transp plane=23 reshape=1,3,4,5 > temp00.H
#	< temp00.H Interp d2out=40 n2out=17 o2out=-320 > temp01.H
	< temp01.H Transp plane=23 reshape=1,3,4,5 > $@
	Rm temp*H

elf.3D.000to356.flt.int30.H:
	Transp plane=34 < elf.3D.000to356.flt.H > temp00.H
	< temp00.H Interp d2out=30 > temp01.H
	< temp01.H Transp plane=23 > temp00.H
	< temp00.H Interp d2out=30 > temp01.H
	< temp01.H Transp plane=23 reshape=1,3,4,5 > temp00.H
	< temp00.H Interp d2out=30 n2out=21 o2out=-300 > temp01.H
	< temp01.H Transp plane=23 reshape=1,3,4,5 > $@
	Rm temp*H

topchalk:
	< elf.L7f.vinit.grid30.H Window3d min1=-1200 n1=485 min2=700 n2=193|Transp plane=13|Gpow gpow=-1| \
	${Tese}/bin/OW_3deditvel_pik.x hor1=hor3dgt2500a.pik v=2500 > /dev/null

elf.3D.000to356.flt.int30.window.H:
#	Transp plane=14 < elf.3D.000to356.flt.int30.H |Transp plane=23 > j1.H
	< elf.3D.000to356.flt.int30.input2window.H ${Tese}/bin/OW3D_windowing.x nhorz=1 hor1=ELF_bschlk01_prestk1 wavz=13 > $@

elf.3D.000to356.flt.int30.rotrec.H:
#	< elf.3D.000to356.flt.int30.window.H Transp | Transp plane=12 reshape=3,4,5 | Transp plane=45 > j.H
	< j.H ${Tese}/bin/OW_3dslant_2d.x nodes=14 nax=51 nahx=31 nay=1 nahy=1 oay=0 oahy=0 \
	oax=-60 oahx=-30 dax=2 dahx=2 nxw=21 rot=1 rec=1 flt=1 > j1.H;
	echo d1=0.004 >> j1.H; < j1.H Bandpass flo=10 fhi=40 > $@; echo d1=10 d4=30 >> $@;
#	< temp.H Transp plane=23 reshape=1,3,5 maxsize=1000 | ./bin/OW_3dslant_2d.x \
#	nodes=14 nax=7 nahx=7 oax=-18 oahx=-15 dax=1 dahx=5 \
#	nxw=3 rot=1 rec=0 | Transp plane=23 reshape=1,3,5 maxsize=1000 > 3d_rotsou_2.5dips.H


elf.3D.bschlk01.flt.int30.sort.H:
#	Transp < elf.3D.000to356.flt.int30.H plane=13 reshape=1,3,5 > temp0.H
#	< temp0.H Transp plane=24 > temp1.H
	< elf.3D.000to356.flt.int30.window.H Transp plane=45 > temp0.H ;<temp0.H ../Tese/bin/OW3d_sort.x ngapx=25 ngapy=25 > $@

elf.3D.bschlk00.gx45.gy1.sort.H:
#	< elf.3D.000to356.flt.int30.window.H Transp plane=45 > temp0.H ;
	<temp0.H ../Tese/bin/OW3d_sort.x ngapx=45 ngapy=1 > $@

elf.3D.bschlk00.gx25.gy1.sort.H:
	< elf.3D.000to356.flt.int30.window.H Transp plane=45 > temp0.H ;<temp0.H ../Tese/bin/OW3d_sort.x ngapx=25 ngapy=1 > $@

bschlk00.gx45gy1:
	Wavelet n1=1501 d1=0.002 wavelet=ricker2 phase=0 fund=20 order=8 tdelay=1.5 domain=time > j0.H;echo o1=-1.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=32 f_max=38 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="elf.3D.bschlk00.gx45.gy1.sort.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.gx45gy1.H,elf.3D.bsck00.sou.gx45gy1.H" \
	tags="cig,sou,vel,rec_out,sou_out" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT" \
	axis="6,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE" \
	nblock=45 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile

bschlk00.gx45gy1.scale:
	Wavelet n1=1501 d1=0.002 wavelet=ricker2 phase=0 fund=10 order=8 tdelay=1.5 domain=time > j0.H;echo o1=-1.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=20 f_max=22 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="elf.3D.bschlk00.gx45.gy1.sort.scale.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.gx45gy1.sc.H,elf.3D.bsck00.sou.gx45gy1.sc.H" \
	tags="cig,sou,vel,rec_out,sou_out" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT" \
	axis="6,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE" \
	nblock=45 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile

bschlk00.gx45gy1.impresp:
	Wavelet n1=801 2501 d1=0.002 wavelet=ricker2 phase=0 fund=20 order=8 tdelay=.8 2.5 domain=time > j0.H;echo o1=-.8 2.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=20 32 f_max=24 38 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
#	Window3d < elf.3D.bschlk00.gx45.gy1.sort.scale.H n6=1 f6=2 n1=1 f1=3 squeeze=n  > cig.H
	Window3d < elf.3D.bschlk00.gx45.gy1.sort.scale.H n6=1 f6=2 n1=1 f1=3 squeeze=n |Transp plane=51|Agc window=300|Transp plane=51> cig.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="cig.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.gx45gy1.impresp.H,elf.3D.bsck00.sou.gx45gy1.impresp.H,inset.H" \
	tags="cig,sou,vel,rec_out,sou_out,inset" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT,OUTPUT" \
	axis="6,4,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE,DISTRIBUTE" \
	nblock=1 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile

bschlk00.gx45gy1.i2wind:
	Wavelet n1=801 2501 d1=0.002 wavelet=ricker2 phase=0 fund=20 order=8 tdelay=.8 2.5 domain=time > j0.H;echo o1=-.8 2.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=20 32 f_max=24 38 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	Window3d < elf.3D.int30.input2window.gx45.gy1.sort.H n6=1 f6=2 n1=1 f1=3 squeeze=n  > cig.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="cig.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.gx45gy1.i2wind.H,elf.3D.bsck00.sou.gx45gy1.i2wind.H,inset.H,velout.H" \
	tags="cig,sou,vel,rec_out,sou_out,inset,velout" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT,OUTPUT,OUTPUT" \
	axis="6,4,4,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE,DISTRIBUTE,DISTRIBUTE" \
	nblock=1 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile


bschlk00.gx25gy1:
	Wavelet n1=801 2501 d1=0.002 wavelet=ricker2 phase=0 fund=20 order=8 tdelay=.8 2.5 domain=time > j0.H;echo o1=-.8 2.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=20 f_max=24 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="elf.3D.bschlk00.gx25.gy1.sort.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.gx25gy1.H,elf.3D.bsck00.sou.gx25gy1.H" \
	tags="cig,sou,vel,rec_out,sou_out" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT" \
	axis="7,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE" \
	nblock=25 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile

bschlk00.perm:
#	Scale < elf.L7f.vinit.grid30.H dscale=2 > vel.H
	Window3d squeeze=n < elf.3D.bschlk01.flt.int30.sort.H n7=18 > cig.H
#	rcpindex
	Wavelet n1=2501 d1=0.002 wavelet=ricker2 phase=0 fund=20 order=8 tdelay=2.5 domain=time > j0.H;echo o1=-2.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=32 f_max=38 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="cig.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.perm.H,elf.3D.bsck00.sou.perm.H" \
	tags="cig,sou,vel,rec_out,sou_out" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT" \
	axis="6,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE" \
	nblock=18 625 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile

bschlk01.perm:
#	Scale < elf.L7f.vinit.grid30.H dscale=2 > vel.H
#	Window3d squeeze=n < elf.3D.bschlk01.flt.int30.sort.H min5=800 n5=181 > cig.H
	Wavelet n1=501 d1=0.008 wavelet=ricker2 phase=0 fund=20 order=8 tdelay=2 domain=time > j0.H;echo o1=-2 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=4 f_max1=32 f_max=38 wei=y is2d=y | Window3d | Cabs | Smooth rect1=11 > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="elf.3D.bschlk01.flt.int30.sort.H,sou.H,vel.H,elf.3D.bsck01.rec.perm.H,elf.3D.bsck01.sou.perm.H" \
	tags="cig,sou,vel,rec_out,sou_out" \
	usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT" \
	axis="7,4,4,5,5" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE" nblock=18 device=eth0 par=3dperm10_par.P \
	pverb=2 mach_mfile=mfile

#	Transp < elf.L7f.vinit.grid30.H plane=13 | Window3d min1=-600 n1=505 min2=1000 n2=185 | ../Tese/bin/OW_3deditvel_pik.x \
#	hor1=hor3dgt2500.grid30.pik v=2500 > /dev/null

tempsort.H:
	echo d5=30 >> elf.3D.000to356.flt.int30.window.H
	< elf.3D.000to356.flt.int30.window.H Transp reshape=3,4,5 plane=23 > $@

tmp_sort%:
	Window3d < tempsort.H j1=45 n1=9 f1=$* squeeze=n > temp_sort$*.H

xysort:
#	make tmp_sort00;make tmp_sort01;make tmp_sort02;make tmp_sort03;make tmp_sort04;make tmp_sort05;
#	make tmp_sort06;make tmp_sort07;make tmp_sort08;make tmp_sort09;make tmp_sort10;make tmp_sort11;
#	make tmp_sort12;make tmp_sort13;make tmp_sort14;make tmp_sort15;make tmp_sort16;make tmp_sort17;
#	make tmp_sort18;make tmp_sort19;make tmp_sort20;make tmp_sort21;make tmp_sort22;make tmp_sort23;
#	make tmp_sort24;make tmp_sort25;make tmp_sort26;make tmp_sort27;make tmp_sort28;make tmp_sort29;
#	make tmp_sort30;make tmp_sort31;make tmp_sort32;make tmp_sort33;make tmp_sort34;make tmp_sort35;
#	make tmp_sort36;make tmp_sort37;make tmp_sort38;make tmp_sort39;make tmp_sort40;make tmp_sort41;
#	make tmp_sort42;make tmp_sort43;make tmp_sort44;make tmp_sort45;
	Cat  temp_sort00.H temp_sort01.H temp_sort02.H temp_sort03.H temp_sort04.H temp_sort05.H \
	 temp_sort06.H temp_sort07.H temp_sort08.H temp_sort09.H temp_sort10.H temp_sort11.H \
	 temp_sort12.H temp_sort13.H temp_sort14.H temp_sort15.H temp_sort16.H temp_sort17.H \
	 temp_sort18.H temp_sort19.H temp_sort20.H temp_sort21.H temp_sort22.H temp_sort23.H \
	 temp_sort24.H temp_sort25.H temp_sort26.H temp_sort27.H temp_sort28.H temp_sort29.H \
	 temp_sort30.H temp_sort31.H temp_sort32.H temp_sort33.H temp_sort34.H temp_sort35.H \
	 temp_sort36.H temp_sort37.H temp_sort38.H temp_sort39.H temp_sort40.H temp_sort41.H \
	 temp_sort42.H temp_sort43.H temp_sort44.H axis=6 > elf.3D.bschlk00.gx45.gy1.sort.H
	echo d1=45 d3=1 o6=1 >> elf.3D.bschlk00.gx45.gy1.sort.H


1tempsort.H:
	echo d5=30 >> elf.3D.000to356.flt.int30.window.scale.H
	< elf.3D.000to356.flt.int30.window.scale.H Transp reshape=3,4,5 plane=23 > $@

1tmp_sort%:
	Window3d < 1tempsort.H j1=45 n1=9 f1=$* squeeze=n > temp_sort$*.H

1xysort:
#	make 1tmp_sort00;make 1tmp_sort01;make 1tmp_sort02;make 1tmp_sort03;make 1tmp_sort04;make 1tmp_sort05;
#	make 1tmp_sort06;make 1tmp_sort07;make 1tmp_sort08;make 1tmp_sort09;make 1tmp_sort10;make 1tmp_sort11;
#	make 1tmp_sort12;make 1tmp_sort13;make 1tmp_sort14;make 1tmp_sort15;make 1tmp_sort16;make 1tmp_sort17;
#	make 1tmp_sort18;make 1tmp_sort19;make 1tmp_sort20;make 1tmp_sort21;make 1tmp_sort22;make 1tmp_sort23;
#	make 1tmp_sort24;make 1tmp_sort25;make 1tmp_sort26;make 1tmp_sort27;make 1tmp_sort28;make 1tmp_sort29;
#	make 1tmp_sort30;make 1tmp_sort31;make 1tmp_sort32;make 1tmp_sort33;make 1tmp_sort34;make 1tmp_sort35;
#	make 1tmp_sort36;make 1tmp_sort37;make 1tmp_sort38;make 1tmp_sort39;make 1tmp_sort40;make 1tmp_sort41;
#	make 1tmp_sort42;make 1tmp_sort43;make 1tmp_sort44;make 1tmp_sort45;
	Cat  temp_sort00.H temp_sort01.H temp_sort02.H temp_sort03.H temp_sort04.H temp_sort05.H \
	 temp_sort06.H temp_sort07.H temp_sort08.H temp_sort09.H temp_sort10.H temp_sort11.H \
	 temp_sort12.H temp_sort13.H temp_sort14.H temp_sort15.H temp_sort16.H temp_sort17.H \
	 temp_sort18.H temp_sort19.H temp_sort20.H temp_sort21.H temp_sort22.H temp_sort23.H \
	 temp_sort24.H temp_sort25.H temp_sort26.H temp_sort27.H temp_sort28.H temp_sort29.H \
	 temp_sort30.H temp_sort31.H temp_sort32.H temp_sort33.H temp_sort34.H temp_sort35.H \
	 temp_sort36.H temp_sort37.H temp_sort38.H temp_sort39.H temp_sort40.H temp_sort41.H \
	 temp_sort42.H temp_sort43.H temp_sort44.H axis=6 > elf.3D.bschlk00.gx45.gy1.sort.scale.H
	echo d1=45 d3=1 o6=1 >> elf.3D.bschlk00.gx45.gy1.sort.scale.H

2tempsort.H:
	echo d5=30 >> elf.3D.000to356.flt.int30.input2window.H
	< elf.3D.000to356.flt.int30.input2window.H Transp reshape=3,4,5 plane=23 > $@

2tmp_sort%:
	Window3d < 2tempsort.H j1=45 n1=9 f1=$* squeeze=n > temp_sort$*.H

2xysort:
#	make 2tmp_sort00;make 2tmp_sort01;make 2tmp_sort02;make 2tmp_sort03;make 2tmp_sort04;make 2tmp_sort05;
#	make 2tmp_sort06;make 2tmp_sort07;make 2tmp_sort08;make 2tmp_sort09;make 2tmp_sort10;make 2tmp_sort11;
#	make 2tmp_sort12;make 2tmp_sort13;make 2tmp_sort14;make 2tmp_sort15;make 2tmp_sort16;make 2tmp_sort17;
#	make 2tmp_sort18;make 2tmp_sort19;make 2tmp_sort20;make 2tmp_sort21;make 2tmp_sort22;make 2tmp_sort23;
#	make 2tmp_sort24;make 2tmp_sort25;make 2tmp_sort26;make 2tmp_sort27;make 2tmp_sort28;make 2tmp_sort29;
#	make 2tmp_sort30;make 2tmp_sort31;make 2tmp_sort32;make 2tmp_sort33;make 2tmp_sort34;make 2tmp_sort35;
#	make 2tmp_sort36;make 2tmp_sort37;make 2tmp_sort38;make 2tmp_sort39;make 2tmp_sort40;make 2tmp_sort41;
#	make 2tmp_sort42;make 2tmp_sort43;make 2tmp_sort44;
	Cat  temp_sort00.H temp_sort01.H temp_sort02.H temp_sort03.H temp_sort04.H temp_sort05.H \
	 temp_sort06.H temp_sort07.H temp_sort08.H temp_sort09.H temp_sort10.H temp_sort11.H \
	 temp_sort12.H temp_sort13.H temp_sort14.H temp_sort15.H temp_sort16.H temp_sort17.H \
	 temp_sort18.H temp_sort19.H temp_sort20.H temp_sort21.H temp_sort22.H temp_sort23.H \
	 temp_sort24.H temp_sort25.H temp_sort26.H temp_sort27.H temp_sort28.H temp_sort29.H \
	 temp_sort30.H temp_sort31.H temp_sort32.H temp_sort33.H temp_sort34.H temp_sort35.H \
	 temp_sort36.H temp_sort37.H temp_sort38.H temp_sort39.H temp_sort40.H temp_sort41.H \
	 temp_sort42.H temp_sort43.H temp_sort44.H axis=6 > elf.3D.int30.input2window.gx45.gy1.sort.H
	echo d1=45 d3=1 o6=1 >> elf.3D.int30.input2window.gx45.gy1.sort.H

###########################################

elf.3D.000to356.flt.int30.window21.H:
	< elf.3D.000to356.flt.int30.input2window.H ${Tese}/bin/OW3D_windowing.x nhorz=1 hor1=ELF_bschlk01_prestk1 wavz=21 dip=0 taperon=0 |\
	${Tese}/bin/OW3D_scale.x > $@

elf.3D.000to356.flt.int30.window21dip.H:
	< elf.3D.000to356.flt.int30.input2window.H ${Tese}/bin/OW3D_windowing.x nhorz=1 hor1=ELF_bschlk01_prestk1 wavz=21 dip=1 |\
	${Tese}/bin/OW3D_scale.x > $@

3tmp_sort%:
	Window3d < 3tempsort.H j1=45 n1=9 f1=$* squeeze=n > temp_sort$*.H

3xysort:
	echo d5=30 >> elf.3D.000to356.flt.int30.window21.H
	< elf.3D.000to356.flt.int30.window21.H Transp reshape=3,4,5 plane=23 > 3tempsort.H
	make 3tmp_sort00;make 3tmp_sort01;make 3tmp_sort02;make 3tmp_sort03;make 3tmp_sort04;make 3tmp_sort05;
	make 3tmp_sort06;make 3tmp_sort07;make 3tmp_sort08;make 3tmp_sort09;make 3tmp_sort10;make 3tmp_sort11;
	make 3tmp_sort12;make 3tmp_sort13;make 3tmp_sort14;make 3tmp_sort15;make 3tmp_sort16;make 3tmp_sort17;
	make 3tmp_sort18;make 3tmp_sort19;make 3tmp_sort20;make 3tmp_sort21;make 3tmp_sort22;make 3tmp_sort23;
	make 3tmp_sort24;make 3tmp_sort25;make 3tmp_sort26;make 3tmp_sort27;make 3tmp_sort28;make 3tmp_sort29;
	make 3tmp_sort30;make 3tmp_sort31;make 3tmp_sort32;make 3tmp_sort33;make 3tmp_sort34;make 3tmp_sort35;
	make 3tmp_sort36;make 3tmp_sort37;make 3tmp_sort38;make 3tmp_sort39;make 3tmp_sort40;make 3tmp_sort41;
	make 3tmp_sort42;make 3tmp_sort43;
	Window3d < 3tempsort.H j1=45 n1=8 f1=44 squeeze=n | Pad end1=1 > temp_sort44.H
	Cat  temp_sort00.H temp_sort01.H temp_sort02.H temp_sort03.H temp_sort04.H temp_sort05.H \
	temp_sort06.H temp_sort07.H temp_sort08.H temp_sort09.H temp_sort10.H temp_sort11.H \
	temp_sort12.H temp_sort13.H temp_sort14.H temp_sort15.H temp_sort16.H temp_sort17.H \
	temp_sort18.H temp_sort19.H temp_sort20.H temp_sort21.H temp_sort22.H temp_sort23.H \
	temp_sort24.H temp_sort25.H temp_sort26.H temp_sort27.H temp_sort28.H temp_sort29.H \
	temp_sort30.H temp_sort31.H temp_sort32.H temp_sort33.H temp_sort34.H temp_sort35.H \
	temp_sort36.H temp_sort37.H temp_sort38.H temp_sort39.H temp_sort40.H temp_sort41.H \
	temp_sort42.H temp_sort43.H temp_sort44.H axis=6 > elf.3D.int30.window21.gx45.gy1.sort.H
	echo d1=45 d3=1 o6=1 >> elf.3D.int30.window21.gx45.gy1.sort.H

4tempsort.H:
	echo d5=30 >> elf.3D.000to356.flt.int30.window.scale.H
	< elf.3D.000to356.flt.int30.window.scale.H Transp reshape=3,4,5 plane=23 > $@

4xysort:
	Cat 4tempsort.H 4tempsort.H axis=6 | Window3d squeeze=n n6=1 > elf.3D.int30.gx1.gy1.sort.scale.H
	echo d1=1 d3=1 o6=1 >> elf.3D.int30.gx1.gy1.sort.scale.H

bschlk00.gx1gy1.scale10:
	Wavelet n1=1501 d1=0.002 wavelet=ricker2 phase=0 fund=10 order=8 tdelay=1.5 domain=time > j0.H;echo o1=-1.5 >> j0.H
	<j0.H Scale dclip=-1 | Transf f_min=0 f_min1=1 f_max1=18 f_max=22 wei=y is2d=y | Window3d | Cabs > j1.H
	Math file1=j1.H exp="file1*0" > j2.H ; Cmplx j1.H j2.H | Transp plane=13 > sou.H
	nohup Parallel command=${Tese}/bin/OW3d_arealsht.x \
	files="elf.3D.int30.gx1.gy1.sort.scale.H,sou.H,elf.L7f.vinit.grid30.H,elf.3D.bsck00.rec.gx1gy1.sc10.H,elf.3D.bsck00.sou.gx1gy1.sc10.H" \
	tags="cig,sou,vel,rec_out,sou_out" usage="INPUT,INPUT,INPUT,OUTPUT,OUTPUT" \
	axis="6,4,4,4,4" file_type="DISTRIBUTE,COPY,COPY,DISTRIBUTE,DISTRIBUTE" \
	nblock=1 device=eth0 par=3dperm10_par0.P pverb=2 mach_mfile=mfile
