📄 suxtutor.sh
字号:
#! /bin/sh# sudemo - illustrate SU# Usage : sudemo## $Author: jkc $# $Source: /src/su/shell/RCS/sututor,v $# $Revision: 1.3 $ ; $Date: 88/09/14 23:22:18 $ROOT=/usr/local/cwpBIN=$ROOT/binSU=$ROOT/src/suTESTDIR=$SU/demos/TutorPATH=/bin:/usr/bin:$BIN:$TESTDIRPAGER=pgechoecho "This program is meant for an X-server--"echo "^C and run sututor for a vplot version"pauseechoecho "SU demo ..."echoecho "===> suhelp is the most primitive SU help facility ..."echoecho "% suhelp"suhelppauseechoecho "===> sufind can be used to get a feel for what is here ..."echoecho "% sufind"sufindpauseechoecho "% sufind dmo"sufind dmopauseechoecho "Here is a typical selfdoc ..."echoecho "% suaddnoise"suaddnoisepauseechoecho "Use a simple C program to generate a few traces ..."echo "... this illustrates using SU with non-su traces"echo$PAGER $TESTDIR/mktraces.cechoecho "% mktraces >BARE_TRACES"$TESTDIR/mktraces >BARE_TRACESechoecho "Put on a SEG-Y header and set the dt header word ..."echo "... the creating program could also be in Fortran (use"echo "ftn=1 in the suaddhead call)"echoecho "% suaddhead <BARE_TRACES ns=64 | sushw key=dt a=4000 >SPIKES"suaddhead <BARE_TRACES ns=64 | sushw key=dt a=4000 >SPIKESechoecho "With the header on, we can view the traces ..."echoecho "% suxwigb <SPIKES title=\"Spikes\" &"suxwigb <SPIKES title="Spikes" &pauseechoecho "Notice that only the first spike is visible ..."echo "Let's use agc without bothering to save the result ..."echo "Now we should see all 3 spikes ..."echoecho "% sugain gagc=1 wagc=.2 <SPIKES | suxwigb title=\"Spikes with AGC\" &"sugain gagc=1 wagc=.2 <SPIKES | suxwigb title="Spikes with AGC" &pauseechoecho "Now let's use suplane to create a more interesting synthetic ..."echoecho "% suplane taper=1 liner=1 >PDATA"suplane taper=1 liner=1 >PDATAechoecho "Now let's look at the data ..."echo "suxwigb <PDATA title=\"3 Planes\" &"suxwigb <PDATA title="3 Planes" &pauseechoecho "Now throw in some noise"echoecho "% suaddnoise <PDATA sn=6 | suxwigb title=\"With Noise\" &"suaddnoise <PDATA sn=6 | suxwigb title="With Noise" &pauseechoecho "And a bandpass filter ..."echoecho "% suaddnoise <PDATA sn=6 | suband | suxwigb title=\"Noise & BandPass\" &"suaddnoise <PDATA sn=6 | suband | suxwigb title="Noise & BandPass" &pauseecho "Looks like a reasonable synthetic, let's get a grayscale plot ..."echo "% suaddnoise <PDATA sn=6 | suband | suximage title=\"Synthetic\" &"suaddnoise <PDATA sn=6 | suband | suximage title="Synthetic" &pauseecho "Now run suhelp and sufind yourself and use the selfdoc facility"echo "to find your way with SU.rm -f BARE_TRACES SPIKES PDATA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -