# Velocity overlay
layers = layer1.v layer2.v layer3a.v layer3b.v layer4a.v \
	layer4b.v layer5.v layer6.v layer7.v layer8.v

layers.v: $(layers)
	vp_Overlay $(layers) >$@
	${RM} $(layers)
layer%.v: layers/layer%.H
	< layers/layer$*.H Window n1=1 f1=1 >junkx.H
	< layers/layer$*.H Window n1=1 f1=0 >junky.H
	Cmplx junkx.H junky.H |\
	$(graph) $(ratio) $(noframe) $(rminmax) plotfat=3 ${dn} out=$@ 
	Rm junkx.H junky.H
layers/layer%.H: layers/layer%
	(cd layers; <layer$* Dd esize=4 >layer$*.H )

# Shot locations
locations = location1.v location2.v location3.v location4.v 

location1.H:
	echo '200.   400. ' >$@
	echo 'esize=0 n1=2 n2=1 n3=1 in=$@ ' >>$@
location2.H:
	echo '340.   400. ' >$@
	echo 'esize=0 n1=2 n2=1 n3=1 in=$@ ' >>$@
location3.H:
	echo '530.   400. ' >$@
	echo 'esize=0 n1=2 n2=1 n3=1 in=$@ ' >>$@
location4.H:
	echo '560.   440. ' >$@
	echo 'esize=0 n1=2 n2=1 n3=1 in=$@ ' >>$@

location%.v: location%.H
	<location$*.H Dd esize=8 | Window n1=1 >junk1.H
	<junk1.H $(graph) symbol=$* out=$@ \
	symbolsz=8 $(ratio) $(noframe) plotcol=3 plotfat=10 $(iminmax)	

${RESDIR}/locations.v: $(locations) vel.H
	<vel.H $(grey) $(ratio) bias=3.3 out=junk2.v title=' ' 
	vp_Overlay junk2.v $(locations) >$@




