code
stringlengths
1
1.96M
language
stringclasses
1 value
#! /bin/sh # Examples of producing multiple shot records with susynlv # Note that we label by shot record and since there are 50 offsets, # use d2=0.02 (1/50). We add some noise to make data a bit more # realistic, in particular, velocity analyses (with suvelan) seem very # "blocky" without a little noise. # Flat mo...
Shell
#! /bin/sh # Clean.sh - recursively call Clean.sh in the demo directories # Test back-up dir first (at CWP must run on NeXT-net) # Take care of subdirectories for i in `ls` do if [ -d $i ] then cd $i if [ -f Clean.sh ] then Clean.sh fi rm -f *~ \#*\# .nfs* *.eps cd .. fi done # Take care of t...
Shell
#! /bin/sh cd Tetramod ; Clean.sh exit 0
Shell
#! /bin/sh S=. viewer3 verbose=1 \ < $S/hzfile3.grid \ rayfile=$S/rayfile3.grid \ sttfile=$S/sttfile3.grid \ wffile=$S/wffile3.grid exit 0
Shell
#! /bin/sh rm hzfile* tetrafile*
Shell
#! /bin/sh Hz=. nxhz=3 nyhz=3 nhz=1 tetrafile=$Hz/tetrafile3.tetra hzfile=$Hz/hzfile3.grid tetramod verbose=1 nhz=$nhz \ nxhz=$nxhz nyhz=$nyhz \ z00=0 \ z01=0 \ z10=0 \ z11=0 \ v00=2 \ v01=2 \ v10=2 \ v11=2 \ dvdz00=1.0 \ dvdz01=1.0 \ dvdz10=1.0 \ dvdz11=1.0 \ hzfile=$hzfile > $tetrafile exit 0
Shell
#! /bin/sh # multiple suppressed prestack data data=radon.data.pbal.gain.jon=1.cdp.su # data after nmo nmodata=nmo.$data parfile=nmovel.par sunmo < $data par=$parfile > $nmodata exit 0
Shell
#! /bin/sh suttoz nz=1500 dz=3 par=suttoz.par \ < stolt.seis.su > stolt.depth.seis.su exit 0
Shell
#! /bin/sh # break up the data in to subsets data=gain.jon=1.cdp.su suwind key=cdp min=1 max=500 < $data > junk.cdp=1-500.su suwind key=cdp min=501 max=1000 < $data > junk.cdp=501-1000.su suwind key=cdp min=1001 max=1500 < $data > junk.cdp=1001-1500.su suwind key=cdp min=1501 < $data > junk.cdp=1501-2142.su exit ...
Shell
#! /bin/sh vnmo= tnmo= data= pmula=0 pmulb=0 ## view nmo corrected data in the Radon domain sunmo vnmo=$vnmo tnmo=$tnmo < $data | suradon offref=-3237 interoff=-262 pmin=-2000 \ pmax=2000 dp=16 choose=0 igopt=2 \ depthref=1000 | suximage perc=99 & ## nmo->radon-> inverse NMO: for multiple suppression sunmo vnmo=$...
Shell
#! /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 parameters datadir=. velpanel=gain.spike.mute.pbal.cdp.su # gained data sorted in cdps vpicks=radonnmovel.par #...
Shell
#! /bin/sh #set -x # set parameters here method=mono # interpolation method r1=10 r2=10 unifpar=unif2.par unif2 < unif2.ascii par=$unifpar method=$method | smooth2 par=$unifpar r1=$r1 r2=$r2 > junk.bin cp junk.bin unewvelzx.bin transp par=$unifpar < unewvelzx.bin > unewvelxz.bin echo "Writin...
Shell
#! /bin/sh vnmo=1500 interoff=-262 offref=-3237 depthref=1000 pmin=-2000 pmax=2000 dp=8 igopt=2 pmula=-800 pmulb=47 data=gain.jon=1.cdp.su # view gather in the radon transform domain choose=0 # =1 use suradon as a radon domain filter #sunmo vnmo=$vnmo < $data | #suradon offref=$offref depthr...
Shell
#! /bin/sh # put the data back together file1= file2= file3= file4= newfile= cat $file1 $file2 $file3 $file4 > temp.su sushw key=tracl a=1 b=1 < temp.su > $newfile exit 0
Shell
#! /bin/sh data=data.pbal.gain.jon=1.cdp.su radondata=radon.$data # the tnmo= and vnmo= values go in a text file called "radonnmovel.par" parfile=radonnmovel.par interoff=-262 offref=-3237 depthref=1000 pmin=-2000 pmax=2000 dp=8 igopt=2 # you might consider making these values 10, or something # we rely on...
Shell
#! /bin/sh data=radon.pmula=-1250.pmula=20.gain.jon=1.cdp.su outdata=stack.radon.su sunmo < $data par=stkvel.p1 | sustack > $outdata exit 0
Shell
#! /bin/sh # convert a single RMS velocity to Interval velocity. # put your values of tnmo= and vnmo= here. tnmo= vnmo= #output file outfile=suttoz.par suintvel t0=$tnmo vs=$vnmo outpar=$outfile echo t=$tnmo >> $outfile echo "use v= and t= values for suttoz " echo " result output in $outfile" exit 0
Shell
#! /bin/sh WIDTH=300 WIDTHOFF=50 WIDTHOFF2=50 HEIGHT=600 HEIGHTOFF=50 HEIGHTOFF2=250 HEIGHTOFF3=500 HEIGHT2=200 WIDTH2=600 WIDTHOFF3=100 WIDTH3=800 HEIGHT3=300 vrmst=vrmst.bin vintt=vintt.bin vinttav=vinttav.bin vintzav=vintzav.bin rmspar=vrmst.par intpar=vintt.par vinttplot=vinttplot.par vintzplot=vintzplot.par uni...
Shell
#! /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 parameters datadir=. velpanel=your_data_cdp.su # data sorted in cdps, multiple-suppressed vpicks=nmovel.par # ou...
Shell
#! /bin/sh set -x ## The assumption is that source and receiver strengths are ## the only quantities that can influence the RMS power ## of a source or output channel gather ## ## The possible source of error in this approach is that we have ## not corrected for the response of the geology. ## correcting for souce ...
Shell
#! /bin/sh vnmo=1500,1757,2510 tnmo=0.0,1.5,3.38 data=gain.jon\=1.cdp\=265.su # view nmo corrected data in the Radon domain sunmo vnmo=$vnmo tnmo=$tnmo < $data | suradon offref=-3237 interoff=-287 pmin=-2000 \ pmax=2000 dp=8 choose=0 igopt=2 \ depthref=1000 | suximage perc=99 & exit 0 # nmo->radon-> inverse NMO:...
Shell
#! /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 parameters velpanel=radon.gain.cdp=265.su # gained and deconvolved seismic data, ...
Shell
#! /bin/sh #set -x # set parameters here dmi=your_depth_section_here.su # depth migrated image dz=3 # depth sampling interval dx=1 # width sampling interval perc=90 method=linear # interpolation method parfile=unif2.par # ...
Shell
#! /bin/sh # Gaussian Beam #set -x # use a v(z,x) velocity profile here vfile=hunewvelzx.bin stacked=put_your_stacked_data_here # vary the values of dz and nz as a test before running the full model sumiggbzo < $stacked dx=12.5 dz=3 nz=1500 \ verbose=1 vfile=$vfile > gb.seismic.su exit 0
Shell
#! /bin/sh sustolt < stack.nmo.myradon.gain.jon=1.su \ par=stolt.par cdpmin=1 cdpmax=2142 taper=30 \ dxcdp=12.5 > stolt.seis.su exit 0
Shell
#! /bin/sh # fake data no multiples sunull nt=1500 ntr=60 dt=.004 | sushw key=gx,offset a=3300,-3237 b=25,50 c=1,1 | suchw key1=sx key2=gx key3=offset a=0 b=1 c=1 | suaddevent type=nmo nt=1500 t0=.5 dt=.004 vel=1500 | suaddevent type=nmo nt=1500 t0=.6 dt=.004 vel=1525 | suaddevent type=nmo nt=1500 t0=.7 dt=.004 ve...
Shell
#! /bin/sh sukdmig2d infile=simple.su outfile=kdmig.simple.su ttfile=tfile.simple \ ft=0 fzt=0 nzt=501 dzt=4.00 angmax=80.0 nxo=80 dxo=40 nzo=150 dzo=12 \ fxt=0 nxt=80 dxt=40 fs=0 ns=80 ds=40 \ dxm=40 v0=2000 noff=1 off0=0 doff=0
Shell
#! /bin/sh rayt2d vfile=vel.kdmig.simple \ dt=.004 nt=501 fa=-80 na=80 \ fz=0 nz=501 dz=4 \ fx=0 nx=80 dx=40 ek=0 \ nxs=80 fxs=0 dxs=40 ms=1 \ tfile=tfile.simple xmovie < tfile.simple clip=3 n1=501 n2=80 loop=1 title="%g traveltime table" &
Shell
#! /bin/sh # Shell script to build velocity profiles with unif2 # input parameters modelfile=syncline.unif2 velfile=syncline.bin n1=200 n2=400 d1=10 d2=10 # use unif2 to build the velocity profile unif2 <$modelfile method=$i ninf=2 nx=$n2 nz=$n1 v00=2000,3000 \ ninf=1 method=spline > $velfile # view the velocity pr...
Shell
#! /bin/sh # Gaussian Beam set -x # Gaussian beam migration sumiggbzo < seismic3.su dx=12.5 dz=3 nz=1500 vfile=newvelzx.bin verbose=1 > gb.seismic.su suximage < gb.seismic.su wbox=750 hbox=550 perc=99 title="GB Migration" f2=0 & supsimage < gb.seismic.su width=7.5 hbox=5.5 perc=99 title="GB Migration" f2=0 > gb....
Shell
#! /bin/sh set -x # fourier finite difference # note dz*nz=4500 to get to the bottom of the model # vary the values of dz and nz as a test before running the full model sumigffd < seismic3.su dx=12.5 dz=3 nz=1500 vfile=newvelxz.bin > ffd.seismic.su suximage < ffd.seismic.su wbox=750 hbox=550 perc=99 title="FFD Mig...
Shell
#! /bin/sh set -x # split step # note dz*nz=4500 to get to the bottom of the model # vary the values of dz and nz as a test before running the full model sumigsplit < seismic3.su dx=12.5 dz=3 nz=1500 vfile=newvelxz.bin > split.seismic.su suximage < split.seismic.su wbox=750 hbox=550 perc=99 title="SPLIT Migration...
Shell
#! /bin/sh set -x # Phase shift plus interpolation # note dz*nz=4500 to get to the bottom of the model # vary the values of dz and nz as a test before running the full model sumigpspi < seismic3.su dx=12.5 dz=3 nz=1500 vfile=newvelxz.bin > pspi.seismic.su suximage < pspi.seismic.su wbox=750 hbox=550 perc=99 title=...
Shell
#! /bin/sh # generate screen images and PostScript Hardcopy files # Finite difference migration suximage < fd.seismic.su wbox=750 hbox=550 perc=99 title="FD Migration" f2=0 & supsimage < fd.seismic.su width=7.5 hbox=5.5 perc=99 title="FD Migration" f2=0 > fd.seismic.ps # Fourier finite difference suximage < ffd.sei...
Shell
#! /bin/sh set -x # finite difference # note dz*nz=4500 to get to the bottom of the model # vary the values of dz and nz as a test before running the full model sumigfd < seismic3.su dx=12.5 dz=3 nz=1500 vfile=newvelxz.bin > fd.seismic.su suximage < fd.seismic.su wbox=750 hbox=550 perc=99 title="FD Migration" f2=0...
Shell
#! /bin/sh suxmovie < /cwpscratch/Data3/timemovie.su perc=98 n1=1500 n2=2142 loop=1 title="time section frame %g" &
Shell
#! /bin/sh suttoz nz=1500 dz=3 < ps.seis.su \ t=0.0,1.0,2.5,3.45,4.36,5.1,5.45,5.95 \ v=1500,2000,3738.45,3338,3876.32,3678.11,5706.7,4156.17 \ > ps.depth.seis.su exit 0 exit 0
Shell
#! /bin/sh suxmovie < /cwpscratch/Data3/depthmovie.su perc=98 n1=1500 n2=2142 loop=1 title="depth section frame %g" &
Shell
#! /bin/sh vel=1400 dvel=100 rm timemovie.su depthmovie.su while [ "$vel" -lt 5000 ] do sustolt < seismic3.su cdpmin=1 cdpmax=2142 vmig=$vel dxcdp=12.5 > tmp.su cat tmp.su >> timemovie.su suttoz < tmp.su v=$vel dz=3 nz=1500 >> depthmovie.su echo $vel vel=`expr $vel + $dvel` done #suxmovie < movie.su perc=9...
Shell
#! /bin/sh sumigps < seismic3.su \ tmig=0.0,1.0,2.5,3.45,4.36,5.1,5.45,5.95 \ vmig=1500,2000,3738.45,3338,3876.32,3678.11,5706.7,4156.17 \ dx=12.5 > ps.seis.su exit 0
Shell
#! /bin/sh suttoz nz=1500 dz=3 < stolt.seis.su \ t=0.0,1.0,2.5,3.45,4.36,5.1,5.45,5.95 \ v=1500,2000,3738.45,3338,3876.32,3678.11,5706.7,4156.17 \ > stolt.depth.seis.su exit 0
Shell
#! /bin/sh sustolt < seismic3.su cdpmin=1 cdpmax=2142 \ tmig=0.0,1.0,2.5,3.45,4.36,5.1,5.45,5.95 \ vmig=1500,2000,3160,3210,3360,3408,3600,3650 \ dxcdp=12.5 > stolt.seis.su exit 0
Shell
#! /bin/sh cd Demos ; Clean exit 0
Shell
#! /bin/sh set -x model=model10LayersInitial data=gatherZR.su scale=1 corrData= prior=0 datacov=0 impedance=0 p=1 s=1 r=0 verbose=1 corrVP= corrVS= corrRHO= orientation=Z dz=0.01 targetbeg=1.00 targetend=1.08 r1=0.0 nr=48 dr=0.025 zs=0.005 F1=0 F2=0 F3=1 receiverfile= u1=0.0 u2=2.0 directwave=0 nu=300 f1=2 f2=50 dt=0...
Shell
#! /bin/sh #demo for SUDREFSVMASTER out=gatherZR.su model=model10Layers nr=48 dr=0.025 r1=0. zs=.005 u1=0.0 u2=2.0 nu=300 f1=2 f2=50 dt=0.004 tmax=4 directwave=0 F1=0 F2=0 F3=1 wu=10 ww=25 fr=1 hanning=1 tau=7.07 nproc=1 nfreqproc= verbose=1 recfile= set -x rm -f $file sudrefsvmaster model=$mod...
Shell
#! /bin/sh #DEMO for logBlock set -x logLAS=logExample lmedian=30 mincontrast=5 ncols=5 columns=1,2,5,3 verbose=0 output=blockedLog logBlock logLAS=$logLAS \ lmedian=$lmedian \ mincontrast=$mincontrast \ ncols=$ncols \ columns=$columns \ verbose=$verbose > $output
Shell
#! /bin/sh #DEMO for program covAdap set -x model=model10Layers trend=model10LayersInitial mode=C dz=0.01 targetbeg=1.00 targetend=1.08 window=0.08 verbose=1 time covAdap \ model=$model \ trend=$trend \ mode=$mode \ dz=$dz \ targetbeg=$targetbeg \ targetend=$targetend \ window=$window \ ver...
Shell
#! /bin/sh #DEMO for dataCovar set -x #creating realizations suplane nt=251 ntr=32 | suaddnoise sn=1 > data1 suplane nt=251 ntr=32 > data2 sudiff data1 data2 > noise rm -f data1 data2 realizations=noise nreal=32 t1=0 t2=1 scale=1 exponential=1 window=0 verbose=1 inverse=1 cov=covar invcov=invcovar dataCovar \ ...
Shell
#! /bin/sh #DEMO for gaussSampling #set -x #setting number of realizations number=10 i=1 covariance=alpha mean=model10LayersInitial exponential=1 impedance=0 p=1 s=0 r=0 targetbeg=1.00 targetend=1.08 dz=0.01 verbose=1 output=realizations >$output while [ $i -le $number ] do gaussSampling \ covariance=$...
Shell
#! /bin/sh cd lib ; rm libdga.a cd .. cd Demo ; Clean
Shell
#! /bin/sh #Cleaning purposes rm *demo* rm xcor rm *log*
Shell
#! /bin/sh data=/u/elbert/wgouveia/summer/dga/demo input=$data/datademo.su xcor=$data/xcor path=/u/elbert/wgouveia/pvm/RIOS dt=.004 $path/sustapply sources=20 receivers=43 maxfold=20 cmps=62 \ datafile=$input \ staticsfile=$data/answer.demo.4 \ verbose=1 | sustatic hdrs=1 sign=-1 | sustack | suxwigb f1=0 d1=$dt d...
Shell
#! /bin/sh DATA=. n1=501 n2=24 file=$DATA/data seismic_data_file=$DATA/line dataheader=$DATA/DemoCDP.su finaldata=$DATA/datademo.su #use susynlv to make synthetic data susynlv nt=$n1 dt=.004 ft=0.0 \ nxo=$n2 dxo=.0 fxo=0.0 fxs=0. er=0 ob=1 \ nxs=1 v00=2.0 dvdz=0 dvdx=0 smooth=1 fpeak=25 \ ref="0.,1.;5.,1." > $fil...
Shell
#! /bin/sh # check to see if the CWPROOT environment variable is set # this shell is part of the general CWP installing and maintenence environment # John Stockwell 9 Dec 1992 -- Center for Wave Phenomena PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd CMD=`basename $0` if test "${CWPROOT}" = "" then echo "CWPROOT environment...
Shell
#! /bin/sh # make directories for CWP/SU codes installation B=$CWPROOT/bin I=$CWPROOT/include L=$CWPROOT/lib mkdir $CWPROOT mkdir $B $L $I mkdir $I/Xtcwp $L/X11 $L/X11/app-defaults $I/Xmcwp mkdir $I/Triangles mkdir $I/Wpc mkdir $I/MGL mkdir $I/Reflect exit 0
Shell
# This shell script attempts to find the actual lexical spelling # of the following objects: # _iob : the traditional name of the stdio FILE structure # _filbuf: the traditional name of the function to fill a FILE buffer # _flsbuf: the traditional name of the function to flush a FILE buffer # # _uflow: _filbuf on Linux...
Shell
if test "`cat Make.state`" != "$1" then rm *.o Stdio_b/*.o Stdio_s/*.o Sfio_f/*.o fi >/dev/null 2>&1 echo "$1" > Make.state exit 0
Shell
#! /bin/sh # /*********************** self documentation **********************/ # THIS_YEAR - print the current year # # Usage: this_year # # NOTES - useful for building dated filenames, etc. # # /**************** end self doc ********************************/ # Author: John Stockwell, Jun 1993 date | awk '{ print $...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # COPYRIGHT - insert CSM COPYRIGHT lines at top of files in working directory # # Usage: copyright file(s) # # /**************** end self doc ********************************/ # $Author: john $ # $Source: /NeXTMount_3.1b/usr/local/cwp/src...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # OVERWRITE - copy stdin to stdout after EOF # # This shell is called from the shell script: replace # # /**************** end self doc ********************************/ # Kernighan and Pike - page 154 opath=$PATH PATH=/bin:/usr/bin:...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # USERNAMES - get list of all login names # # Usage: usernames # # /**************** end self doc ********************************/ PATH=/bin:/usr/bin:/usr/ucb awk -F: '{print $1 ": " $5}' /etc/passwd | sed ' /The Super-user/d /switch ...
Shell
#! /bin/sh # locks - list rcs files that are locked # Usage: locks # Jack K. Cohen, 1987 PATH=/bin:/usr/bin:/usr/ucb for i in RCS/*,v do LINE=`head -5 $i | awk 'NR==5 {print $2}'` if [ "$LINE" = "strict;" ] then echo $i: $LINE fi done exit 0
Shell
#! /bin/sh # /*********************** self documentation **********************/ # VARLIST - list variables used in a Fortran program # # Usage: varlist file.f ... # # Output is in the file: vars.file # # /**************** end self doc ********************************/ # Jack K. Cohen, 1985 BIN=${CWPROOT}/bin PATH=...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # CPALL , RCPALL - for local and remote directory tree/file transfer # # Usage: cpall sourcedir destinationdir # Caveat: destinationdir must exist and be writeable by the user # # Usage: rcpall sourcedir remotemachine destinationdir # ...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # CWPFIND - look for files with patterns in CWPROOT/src/cwp/lib # # Usage: cwpfind pattern_fragment # cwpfind -e exact_pattern # # /**************** end self doc ********************************/ # Copyright 1985 by Jack K. Cohen ...
Shell
#! /bin/sh #/*********************** self documentation **********************/ # ARGV - give examples of dereferencing char **argv # # Usage: argv # #/**************** end self doc ********************************/ # Jack K. Cohen, 1985 PATH=/bin:/usr/bin:/usr/ucb exec cat << 'END' char *argv[] = char **argv argv ...
Shell
#! /bin/sh # why - obscure joke PATH=/bin:/usr/bin:/usr/ucb exec echo "Because life is a transient"
Shell
#! /bin/sh # /*********************** self documentation **********************/ # ZAP - kill processes by name # # Typical usages: # zap ximage # zap 'xmovie|xgraph' # # Zap accepts full pattern matching for the process names # # Caveat: zap assumes that the FIRST field produced by the # Unix "ps" command is the pid (...
Shell
#! /bin/sh #/*********************** self documentation **********************/ # WEEKDAY - prints today's WEEKDAY designation # # Usage: weekday # # Note: Useful for building dated filenames # # /**************** end self doc ********************************/ # Author: John Stockwell, 28 May 1993 PATH=/bin:/usr/bin:...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # FILETYPE - list all files of given type # # Usage: filetype string_from_file_output # # Examples: # filetype text - list printable files # filetype stripped - list unstripped files # /**************** end self doc ***********...
Shell
#! /bin/sh #/*********************** self documentation **********************/ # TODAYS_DATE - prints today's date in ZULU format with no spaces # # Usage: todays_date # # Note: Useful for building dated filenames # # /**************** end self doc ********************************/ # Author: John Stockwell, 28 May 1...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # REPLACE - REPLACE string1 with string2 in files # # Usage: replace string1 string2 files # #/**************** end self doc ********************************/ # Kernighan and Pike - page 155 BIN=${CWPROOT}/bin PATH=/bin:/usr/bin:/usr/u...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # NEWCASE - Changes the case of all the filenames in a directory, dir # # Usage: newcase -l dir change all filenames to lower case # -u dir change all filenames to upper case # # Notes: Useful for files downloaded from VA...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # DIRTREE - show DIRectory TREE # # Usage: dirtree # # /**************** end self doc ********************************/ # John Stockwell May 1992 # (based loosely on a shell of the same name by Jack K. Cohen, 1988) ROOT=${CWPROOT} BIN=$...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # Grep - recursively call egrep in pwd # # Usage: Grep [-egrep_options] pattern # # Caution: Do NOT redirect into file in pwd, either use something # like >../Grep.out or perhaps pipe output into mail to yourself. # # Author: Jack, 7/95...
Shell
#! /bin/sh #/*********************** self documentation **********************/ # TIME_NOW - prints time in ZULU format with no spaces # # Usage: time_now # # Note: Useful for building dated filenames # # /**************** end self doc ********************************/ # Author: John Stockwell, 28 May 1993 PATH=/bin...
Shell
#! /bin/sh #/*********************** self documentation **********************/ # PRECEDENCE - give table of C precedences from Kernighan and Ritchie # # Usage: precedence # #/**************** end self doc ********************************/ PATH=/bin:/usr/bin:/usr/ucb exec cat <<'END' TABLE of PREC...
Shell
#! /bin/sh # Clean.sh - recursively call Clean.sh in the demo directories # Test back-up dir first (at CWP must run on NeXT-net) # Take care of subdirectories for i in `ls` do if [ -d $i ] then cd $i if [ -f Clean.sh ] then Clean.sh fi rm -f *~ \#*\# .nfs* *.eps cd .. fi done # Take care of t...
Shell
#! /bin/sh set -v in1=t.a in2=amp.a in3=d21.a in4=d22.a in5=d23.a in6=d31.a in7=d32.a in8=d33.a in9=a1.a in10=b1.a out1=t out2=amp out3=d21 out4=d22 out5=d23 out6=d31 out7=d32 out8=d33 out9=a1 out10=b1 tableq a2b<$in1 n1=1>$out1 a2b<$in2 n1=1>$out2 a2b<$in3 n1=1>$out3 a2b<$in4 n1=1>$out4 a2b<$in5 n1=1>$out5 a2b<$in...
Shell
#! /bin/sh # shell for running unif2 --- uniformly sampled Cshot model set -v nx=1 nz=101 dz=15 fz=.0 ninf=3 npmax=201 unif2 <flatmodel ninf=$ninf npmax=$npmax \ nz=$nz dz=$dz fz=$fz nx=$nx \ v00=2000,3000,5000,7500 >vfile out=vfiles.a tmp1=tmp1 tmp2=tmp2 tmp3=tmp3 n1=101 d1=15 r1=75 n2=3 ...
Shell
#! /bin/sh #set -v ximage<vfile n1=101 \ d1=0.015 d2=4.0 f2=1 label1="Depth (km)" label2="X (km)"\ title="Velocity"\ d1num=0.4 d2num=1 whbox=700 hbox=400\ titlesize=30 labelsize=24\ x2beg=0 x2end=4& suximage<flat3lay500off.su \ d1=0.002 d2=0.01 f2=0.0 label1="Traveltime (s)" label2="X (km)...
Shell
#! /bin/sh # Clean up residue from runs rm -f vfile* rm -f t amp a1 b1 d21 d22 d23 d31 d32 d33 rm -f data* *.su *.ps junk* test*
Shell
#! /bin/sh #set -v psimage<vfile n1=101 \ d1=0.015 d2=4.0 f2=1 label1="Depth (km)" label2="X (km)"\ title="Velocity"\ d1num=0.4 d2num=1 width=7.0 height=4.0\ titlesize=30 labelsize=24\ x2beg=0 x2end=4>vfile.ps supsimage<flat3lay500off.su \ d1=0.002 d2=0.01 f2=0.0 label1="Traveltime (s)" l...
Shell
#! /bin/sh set -v input=flat3lay500off.su vfile=vfile tfile=t ampfile=amp d21file=d21 d22file=d22 d23file=d23 d31file=d31 d32file=d32 d33file=d33 a1file=a1 b1file=b1 output=inv500offw3.su output1=inv500offw3.ps geo_type=3 com_type=3 fxt=0.0 dxt=50.0 nxt=81 fyt=0.0 dyt=50.0 nyt=81 fzt=0.0 dzt=25.0 nzt=61 dt=0.002...
Shell
#! /bin/sh # Run CSHOT with CWP PostScript Graphics model=1 cshot1 >/dev/null cshot2 suaddhead <comodel${model}traces ftn=1 ns=701 | sushw key=dt a=2000 >flat3lay500off.su rm -f comodel1* rm -f junk.su exit 0
Shell
#! /bin/sh # clean up cd ./Demo Clean.sh exit 0
Shell
#! /bin/sh cd lib rm *.a cd ../main rm INSTALL *.o
Shell
#! /bin/sh # /*********************** self documentation **********************/ # UPDATEDOC - put self-docs in ../doc/Stripped and ../doc/Headers # # Usage: updatedoc path # # Notes: # Paths include: cwp/main cwp/lib cwp/shell par/main par/lib par/shell # xplot/main xplot/lib psplot/main psplot/lib psplot/shell #...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # UPDATEDOCALL - put self-docs in ../doc/Stripped # # Usage: updatedocall # # Note: this shell uses updatedoc to update the database used by # suname and gendocs # # /**************** end self doc ********************************...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # STRIPTOTXT - put files from $CWPROOT/src/doc/Stripped into a new # directory in the form $CWPROOT/src/TXT/NAME.txt # # Usage: striptotxt # # Author: John Stockwell, Sept 2001 # /**************** end self doc *************...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # UPDATEHEAD - update ../doc/Headers/Headers.all # # Usage: updatehead # # Notes: # # This file builds the database used by suname # /**************** end self doc ********************************/ ##################$############...
Shell
#! /bin/sh # /*********************** self documentation **********************/ # GENDOCS - generate complete list of selfdocs in latex form # # Usage: gendocs -o output filename is: selfdocs.tex # # /**************** end self doc ********************************/ # Author: John Stockwell -- 5 Jan 1992 PATH=/bin:/...
Shell
#! /bin/sh rm *.o
Shell
#! /bin/sh # Clean - master clean for this directory and ALL the Demo subdirectories for i in Demo* do cd $i Clean cd .. done
Shell
#! /bin/sh # Clean up residue from runs demo=1 rm -f demo${demo}plot demo${demo}par demo${demo}psfile[1-6] cshot1plot \ demo${demo}traces demo${demo}shot junk*
Shell
#! /bin/sh # Run CSHOT with CWP PS Graphics demo=1 MACHINE=keller USER="-l jkc" # don't need if usernames the same on both machines x1beg=0 x1end=10000 x2beg=0 x2end=10000 cshot1 | cshotplot >demo${demo}plot outpar=demo${demo}par psgraph <demo${demo}plot par=demo${demo}par style=seismic \ title="Dome " \ ...
Shell
#! /bin/sh # Run CSHOT with CWP X Graphics demo=1 x1beg=0 x1end=10000 x2beg=0 x2end=10000 cshot1 | cshotplot >demo${demo}plot outpar=demo${demo}par xgraph <demo${demo}plot par=demo${demo}par \ title="Dome " \ -geometry 600x600+650-70 \ label1="Depth (ft)" label2="Range (ft)" \ x1beg=$x1beg x1end=$x1end x2beg...
Shell
#! /bin/sh # Clean up residue from runs rm -f record (cd model.dir; Clean) (cd inversion.dir; Clean)
Shell
#! /bin/sh # Clean up residue from runs demo=5 rm -f demo${demo}plot demo${demo}par demo${demo}psfile[1-6] cshot1plot \ demo${demo}traces demo${demo}shot
Shell
#! /bin/sh # Run CSHOT with CWP PS Graphics set -x demo=5 x1beg=0 x1end=12000 x2beg=0 x2end=24000 cshot1>cshot1plot cshotplot <cshot1plot >demo${demo}plot outpar=demo${demo}par psgraph <demo${demo}plot par=demo${demo}par style=seismic \ title=" Ray Plot" \ ybox=3.5 hbox=4 grid1=dash grid2=dash \ label1=...
Shell