📄 velan_nsel
字号:
#! /bin/sh# Velocity analyses for the cmp gathers# Authors: Dave Hale, Jack K. Cohen, with modifications by John Stockwell# NOTE: Comment lines preceeding user input start with ###set -x## Set parametersvelpanel=modeldatavpicks=stkvel.p1normpow=0slowness=0cdpmin=1500cdpmax=3500dcdp=500fold=12 # only have 12 shots, otherwise would be 64/2=32 for dsx=dgx## Set velocity sampling and band pass filtersnv=120dv=75.0fv=4000.0nout=501 # nsdxout=0.004nx=12dx=.1tau=.2## set filter valuesf=1,10,100,120amps=0,1,1,0## number of contours in contour plotnc=15fc=0.01 # This number should be around .1 or .2 for real data ### Get header infonout=`sugethw ns <$velpanel | sed 1q | sed 's/.*ns=//'`dt=`sugethw dt <$velpanel | sed 1q | sed 's/.*dt=//'`dxout=`bc -l <<END $dt / 1000000END`### Do the velocity analyses.echoechoecho " Velocity Analysis using the Normalized Selective crosscorrelation sum"echoechoecho " Instructions for Velocity Analysis."echoecho " A contour semblance map will appear on the left of your screen."echo " A wiggle trace plot of the cdp panel being analysed will appear"echo " on the right as a aid in picking."echoecho " Pick velocities by placing cursor on each peak in the"echo " semblance plot and typing 's'. Type 'q' when last peak is picked."echo " Note, this is 'blind' picking. You will not see any indication"echo " on the contour plot that a point has been picked."echoecho " There will be a maximum of 4 peaks to be picked, as this is the"echo " number of reflectors in the model. However, for the far-offset"echo " CDP gathers, it may be difficult to pick all 4 peaks."echoecho " A graph of the velocity function will appear, and a prompt to" echo " hit the return key will be seen in this terminal window. You"echo " will be asked if your picks are ok. This gives you a chance"echo " to re-pick the velocities if you do not like the velocity function"echo " you have obtained."pausecdp=$cdpminwhile [ $cdp -le $cdpmax ]do ok=false while [ $ok = false ] do echo "Starting velocity analysis for cdp $cdp" suwind < $velpanel key=cdp min=$cdp max=$cdp count=$fold > panel.$cdp suxwigb < panel.$cdp title="CDP gather for cdp=$cdp" xbox=700 \ mpicks=mpicks.$cdp & sugain tpow=2 < panel.$cdp | sufilter f=$f amps=$amps | suvelan_nsel nx=$nx dx=$dx nv=$nv dv=$dv fv=$fv | suxcontour tau=$tau nc=$nc bclip=0.2 wclip=0.0 f2=$fv d2=$dv \ units="semblance" fc=$fc \ label1="Time (sec)" label2="Velocity (m/sec)" \ title="Velocity Scan (semblance plot) for CMP $cdp" mpicks=mpicks.$cdp sort <mpicks.$cdp -n | mkparfile string1=tnmo string2=vnmo >par.$cdp echo "Putting up velocity function for cdp $cdp" sed <par.$cdp ' s/tnmo/xin/ s/vnmo/yin/ ' >unisam.p unisam nout=$nout fxout=0.0 dxout=$dxout \ par=unisam.p method=spline | xgraph n=$nout nplot=1 d1=$dxout f1=0.0 \ label1="Time (sec)" label2="Velocity (m/sec)" \ title="Stacking Velocity Function: CMP $cdp" \ grid1=solid grid2=solid \ linecolor=2 style=seismic & pause echo "Picks OK? (y/n) " | tr -d "\012" >/dev/tty read response case $response in n*) ok=false ;; *) ok=true ;; esac done </dev/tty cdp=`bc -l <<END $cdp + $dcdpEND`doneset +x### Combine the individual picks into a composite sunmo par fileecho "Editing pick files ...">$vpicksecho "cdp=" | tr -d "\012" >>$vpickscdp=$cdpminecho "$cdp" | tr -d "\012" >>$vpickscdp=`bc -l <<END $cdp + $dcdpEND`while [ $cdp -le $cdpmax ]do echo ",$cdp" | tr -d "\012" >>$vpicks cdp=`bc -l <<END $cdp + $dcdpEND`doneecho >>$vpickscdp=$cdpminwhile [ $cdp -le $cdpmax ]do cat par.$cdp >>$vpicks cdp=`bc -l <<END $cdp + $dcdpEND`doneecho "sunmo par file: $vpicks is ready"### Clean upcdp=$cdpminwhile [ $cdp -le $cdpmax ]do rm mpicks.$cdp par.$cdp cdp=`bc -l <<END $cdp + $dcdpEND`donerm unisam.p
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -