#########################################
#
#
#
#
migar1scig.v:
	Window3d n3=1 min3=1.75 < 9200mig_comb1_enc0_vel.H | Scale scale_to=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@

migsp1scig.v:
	Window3d n1=1 min1=1.75 < 9200_mig_brad.H | Scale scale_to=1 | Transp | Grey pclip=100 > /dev/null out=${RESDIR}/$@ 

migar1acig.v:
	Window3d n3=1 min3=1.75 < 9200mig_comb1_enc0_vel.H | Scale scale_to=1 | Pad beg2=40 end2=40 end1=100 > xx.H
	< xx.H /net/koko/bob/SEP_BOB/bin/OFF2ANG amax=40 eps=20 maxmem=1000 verb=y > yy.H ; < yy.H Window3d max1=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@

migsp1acig.v:
	Window3d n1=1 min1=1.75 < 9200_mig_brad.H | Scale scale_to=1 | Transp | Pad beg2=40 end2=40 end1=100 > xx.H
	< xx.H /net/koko/bob/SEP_BOB/bin/OFF2ANG amax=40 eps=20 maxmem=1000 verb=y > yy.H ; < yy.H Window3d max1=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@ 

migar1rec.v:
	Transp plane=13 < 9201areal_rec_comb1_enc0_vel.H | Transf | Reverse which=1 opt=ignore | Window3d max1=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@ 

migar1sou.v:
	Transp plane=13 < 9201areal_sou_comb1_enc0_vel.H | Transf | Reverse which=1 opt=no | Window3d min1=-1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@ 

#
# ... now with low velocity and dip
#
migar1sciglo.v:
	Window3d n3=1 min3=2.5 < 9100mig_comb1_enc0_vel.H | Scale scale_to=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@

migsp1sciglo.v:
	Window3d n1=1 min1=2.5 < 9100_mig_brad.H | Scale scale_to=1 | Transp | Grey pclip=100 > /dev/null out=${RESDIR}/$@ 

migar1aciglo.v:
	Window3d n3=1 min3=2.5 < 9100mig_comb1_enc0_vel.H | Scale scale_to=1 | Pad beg2=40 end2=40 end1=100 > xx.H
	< xx.H /net/koko/bob/SEP_BOB/bin/OFF2ANG amax=40 eps=20 maxmem=1000 verb=y > yy.H ; < yy.H Window3d max1=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@

migar2aciglo.v:
	Window3d n3=1 min3=2.5 < 9101mig_comb1_enc0_vel.H | Scale scale_to=1 | Pad beg2=40 end2=40 end1=100 > xx.H
	< xx.H /net/koko/bob/SEP_BOB/bin/OFF2ANG amax=40 eps=20 maxmem=1000 verb=y > yy.H ; < yy.H Window3d max1=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@

migsp1aciglo.v:
	Window3d n1=1 min1=2.5 < 9100_mig_brad.H | Scale scale_to=1 | Transp | Pad beg2=40 end2=40 end1=100 > xx.H
	< xx.H /net/koko/bob/SEP_BOB/bin/OFF2ANG amax=40 eps=20 maxmem=1000 verb=y > yy.H ; < yy.H Window3d max1=1 | Grey pclip=100 > /dev/null out=${RESDIR}/$@ 

#
# Cubes low velocity and dip
#
sourot.v:
	< 9100_rot_sig_sou.H Transp plane=23 | Window3d min3=1 max3=3 min1=.5 max1=1 min2=-.4 n2=81| Grey gainpanel=a pclip=100 eout=1 | Transp plane=23 > x.T
	< x.T Window3d f1=0 f2=0 f3=0 f4=0 f5=0 n1=125 n2=200 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=53 frame2=100 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@

recrot.v:
	< 9100_rot_sig_rec.H Transp plane=23 | Window3d min3=1 max3=3 min1=.5 max1=1 min2=-.4 n2=81| Grey gainpanel=a pclip=100 eout=1 | Transp plane=23 > x.T
	< x.T Window3d f1=0 f2=0 f3=0 f4=0 f5=0 n1=125 n2=200 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=53 frame2=100 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@



diprot.v:
	< 9102mig_comb1_enc0_vel.H Window3d min3=1 max3=3 min1=.5 max1=1 min2=-.4 n2=81| Grey gainpanel=a pclip=100 eout=1 | Transp plane=23 > 9102mig_comb1_enc0_vel.T
	< 9102mig_comb1_enc0_vel.T Window3d f1=0 f2=0 f3=0 f4=0 f5=0 n1=125 n2=200 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=70 frame2=91 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@

dipnorot.v:
	< 9103mig_comb1_enc0_vel.H Window3d min3=1 max3=3 min1=.5 max1=1 min2=-.4 n2=81| Grey gainpanel=a pclip=100 eout=1 | Transp plane=23 > 9103mig_comb1_enc0_vel.T
	< 9103mig_comb1_enc0_vel.T Window3d f1=0 f2=0 f3=0 f4=0 f5=0 n1=125 n2=200 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=74 frame2=100 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@

dipshtpr.v:
	< 9100_mig_brad.H Window3d min1=1 n1=201 min5=0.5 max1=1 min3=-.4 n3=81 | Transp plane=13 | Grey gainpanel=a pclip=100 eout=1 | Transp plane=23 > 9100_mig_brad.T
	< 9100_mig_brad.T  Window3d f1=0 f2=0 f3=0 f4=0 f5=0 n1=125 n2=200 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=53 frame2=100 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@

dipshtprV.v:
	< 9110_mig_brad.H Window3d min5=0.5 max5= 1 min1=1 max1=3 | Transp plane=13 | Grey eout=1 gainpanel=a pclip=100 | Transp plane=23 > 9110_mig_brad.T
	< 9110_mig_brad.T Window3d  f1=0 f2=0 f3=0 f4=0 f5=0 n1=124 n2=200 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=74 frame2=100 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@

nodipshtpr.v:
	< 9200_mig_brad.H Window3d min1=1 n1=151 max1=1 min3=-.4 n3=81 | Transp plane=13 | Grey gainpanel=a pclip=100 eout=1 | Transp plane=23 > 9200_mig_brad.T
	< 9200_mig_brad.T  Window3d f1=0 f2=0 f3=0 f4=0 f5=0 n3=81 n4=1 n5=1  >a0.T
	< a0.T Cubeplot flat=1 frame1=178 frame2=100 frame3=40 wantcoordlabel=0 point1=.7 point2=0.7 title=" " > \
	/dev/null out=./${RESDIR}/$@
 
#
# Additional figures
#
arm112eve.v: # Summing 4 z-phs-encoding migration
	Window3d min3=0 max3=4 < 1003mig_combine.H | Transp plane=23 \
	| Grey eout=1 gainpanel=a pclip= 99 title=" " label1="depth(km)" label2="distance(km)" label3="offset(km)"> xxx.T
	< xxx.T Window3d  f1=0 f2=0 f3=0 f4=0 f5=0 n1=250 n2=200 n3=41 n4=1 n5=1  > a0.T
	< a0.T Cubeplot wantcoordlabel=-1 point1=.7 point2=0.7 flat=1 frame1=1 frame2=78 frame3=20 title=" " > \
	/dev/null out=./${RESDIR}/$@

xtalk:
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=0 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/1.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=1 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/2.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=2 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/3.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=3 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/4.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=4 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/5.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=5 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/6.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=6 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/7.v
	< 3.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=7 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/8.v

# echo esize=8 >> 3893_GR.H ; < 3893_GR.H Transf maxsize=1000 | Reverse which=1 opt=ignore | Transp plane=12 reshape=1,3 | Pad beg2=20 | Window3d n2=200 > 2.H
# echo esize=8 >> 3893_GS.H ; < 3893_GS.H Transf maxsize=1000 | Reverse which=1 opt=ignore | Transp plane=12 reshape=1,3  > 1.H
# Math file1=1.H file2=2.H exp=file1+file2 > 4.H

xtalk2:
	< 4.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=0 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/1a.v
	< 4.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=1 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/2a.v
	< 4.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=2 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/3a.v
	< 4.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=3 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/4a.v
	< 4.H Window3d j3=5 min2=2 max2=4 max3=0.235 | Window3d n3=1 f3=4 | Grey gainpanel=e pclip=100 > /dev/null out=./${RESDIR}/5a.v

xtalk3.v: # Migration of phs-encoding 2 in w 44 areal shots
	Window3d min3=0 max3=4 < 1003mig_combine.H | Transp plane=23 \
	| Grey eout=1 gainpanel=a pclip= 99 title=" " label1="depth(km)" label2="distance(km)" label3="offset(km)"> xxx.T
	< xxx.T Window3d  f1=0 f2=0 f3=0 f4=0 f5=0 n1=250 n2=200 n3=41 n4=1 n5=1  > a0.T
	< a0.T Cubeplot wantcoordlabel=-1 point1=.7 point2=0.7 flat=1 frame1=1 frame2=78 frame3=20 title=" " > \
	/dev/null out=./${RESDIR}/$@


#############Figures pdf##################
dipnorot.pdf:
	pstexpen ${R}/dipnorot.v ${R}/dipnorot.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/dipnorot.ps 

diprot.pdf:
	pstexpen ${R}/diprot.v ${R}/diprot.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/diprot.ps 

dipshtpr.pdf: # ${R}/dipshtpr.v
	pstexpen ${R}/dipshtpr.v ${R}/dipshtpr.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/dipshtpr.ps 

dipshtprV.pdf: # ${R}/dipshtprV.v
	pstexpen ${R}/dipshtprV.v ${R}/dipshtprV.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/dipshtprV.ps 

mig08.pdf: # ${R}/mig08.v
	pstexpen ${R}/mig08.v ${R}/mig08.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/mig08.ps 

migar1aciglo.pdf: # ${R}/migar1aciglo.v
	pstexpen ${R}/migar1aciglo.v ${R}/migar1aciglo.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1aciglo.ps 

migar1acig.pdf: # ${R}/migar1acig.v
	pstexpen ${R}/migar1acig.v ${R}/migar1acig.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1acig.ps 

migar1rec.pdf: # ${R}/migar1rec.v
	pstexpen ${R}/migar1rec.v ${R}/migar1rec.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1rec.ps 

migar1sciglo.pdf: # ${R}/migar1sciglo.v
	pstexpen ${R}/migar1sciglo.v ${R}/migar1sciglo.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1sciglo.ps 

migar1scig.pdf: # ${R}/migar1scig.v
	pstexpen ${R}/migar1scig.v ${R}/migar1scig.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1scig.ps 

migar1sou.pdf: # ${R}/migar1sou.v
	pstexpen ${R}/migar1sou.v ${R}/migar1sou.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1sou.ps 

migar2aciglo.pdf: # ${R}/migar2aciglo.v
	pstexpen ${R}/migar2aciglo.v ${R}/migar2aciglo.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar2aciglo.ps 

migsp1aciglo.pdf: # ${R}/migsp1aciglo.v
	pstexpen ${R}/migsp1aciglo.v ${R}/migsp1aciglo.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migsp1aciglo.ps 

migsp1acig.pdf: # ${R}/migsp1acig.v
	pstexpen ${R}/migsp1acig.v ${R}/migsp1acig.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migsp1acig.ps 

migsp1sciglo.pdf: # ${R}/migsp1sciglo.v
	pstexpen ${R}/migsp1sciglo.v ${R}/migsp1sciglo.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migsp1sciglo.ps 

migsp1scig.pdf: # ${R}/migsp1scig.v
	pstexpen ${R}/migsp1scig.v ${R}/migsp1scig.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migsp1scig.ps 

nodipshtpr.pdf: # ${R}/nodipshtpr.v
	pstexpen ${R}/nodipshtpr.v ${R}/nodipshtpr.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/nodipshtpr.ps 

recrot.pdf: # ${R}/recrot.v
	pstexpen ${R}/recrot.v ${R}/recrot.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/recrot.ps 

rot06rec.pdf: # ${R}/rot06rec.v
	pstexpen ${R}/rot06rec.v ${R}/rot06rec.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/rot06rec.ps 

rot06sou.pdf: # ${R}/rot06sou.v
	pstexpen ${R}/rot06sou.v ${R}/rot06sou.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/rot06sou.ps 

sourot.pdf: # ${R}/sourot.v
	pstexpen ${R}/sourot.v ${R}/sourot.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sourot.ps 

migar1.pdf: # ${R}/migar1.v
	pstexpen ${R}/migar1.v ${R}/migar1.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migar1.ps 

migscig1.pdf: # ${R}/migscig1.v
	pstexpen ${R}/migscig1.v ${R}/migscig1.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migscig1.ps 

migacig1.pdf: # ${R}/migacig1.v
	pstexpen ${R}/migacig1.v ${R}/migacig1.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/migacig1.ps 

datarot.pdf: # ${R}/datarot.v
	pstexpen ${R}/datarot.v ${R}/datarot.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/datarot.ps 

dipshtpr1.pdf: # ${R}/dipshtpr1.v
	pstexpen ${R}/dipshtpr1.v ${R}/dipshtpr1.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/dipshtpr1.ps 

dipnorot1.pdf: # ${R}/dipnorot1.v
	pstexpen ${R}/dipnorot1.v ${R}/dipnorot1.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/dipnorot1.ps 

diprot1.pdf: # ${R}/diprot1.v
	pstexpen ${R}/diprot1.v ${R}/diprot1.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/diprot1.ps 


###############################################
#
# Sigsbee examples
#
sigshp.pdf: # ${R}/sigshp.v
	pstexpen ${R}/sigshp.v ${R}/sigshp.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigshp.ps 

signicT.pdf: # ${R}/signicT.v
	pstexpen ${R}/signicT.v ${R}/signicT.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/signicT.ps 

signicW.pdf: # ${R}/signicW.v
	pstexpen ${R}/signicW.v ${R}/signicW.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/signicW.ps 

signphz.pdf: # ${R}/signphz.v
	pstexpen ${R}/signphz.v ${R}/signphz.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/signphz.ps 

signphz4.pdf: # ${R}/signphz4.v
	pstexpen ${R}/signphz4.v ${R}/signphz4.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/signphz4.ps 

signphw4.pdf: # ${R}/signphw4.v
	pstexpen ${R}/signphw4.v ${R}/signphw4.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/signphw4.ps 

signphw.pdf: # ${R}/signphw.v
	pstexpen ${R}/signphw.v ${R}/signphw.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/signphw.ps 

sigicT.pdf: # ${R}/sigicT.v
	pstexpen ${R}/sigicT.v ${R}/sigicT.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigicT.ps 

sigicW.pdf: # ${R}/sigicW.v
	pstexpen ${R}/sigicW.v ${R}/sigicW.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigicW.ps 

sigphz.pdf: # ${R}/sigphz.v
	pstexpen ${R}/sigphz.v ${R}/sigphz.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigphz.ps 

sigphz4.pdf: # ${R}/sigphz4.v
	pstexpen ${R}/sigphz4.v ${R}/sigphz4.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigphz4.ps 

sigphw.pdf: # ${R}/sigphw.v
	pstexpen ${R}/sigphw.v ${R}/sigphw.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigphw.ps 

sigphw4.pdf: # ${R}/sigphw4.v
	pstexpen ${R}/sigphw4.v ${R}/sigphw4.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigphw4.ps 

sigpick.pdf:
	epstopdf ${R}/sigpick.ps 

sigpick1.pdf:
	epstopdf ${R}/sigpick1.ps 

sigshtang.pdf: # ${R}/sigshtang.v
	pstexpen ${R}/sigshtang.v ${R}/sigshtang.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigshtang.ps 

sigphz4ang.pdf: # ${R}/sigphz4ang.v
	pstexpen ${R}/sigphz4ang.v ${R}/sigphz4ang.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/sigphz4ang.ps 

armigW.pdf: # ${R}/armigW.v
	pstexpen ${R}/armigW.v ${R}/armigW.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/armigW.ps 

armigT.pdf: # ${R}/armigT.v
	pstexpen ${R}/armigT.v ${R}/armigT.ps color=n fat=1 fatmult=1.5 invras=n force=  invras=y
	epstopdf ${R}/armigT.ps 









