code
stringlengths
1
1.96M
language
stringclasses
1 value
#! /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=modeldata vpicks=stkvel.p1 normpow=0 slowness=0 cdpmin=1500 cdpmax=3500 dcdp=500 fold=12 # only hav...
Shell
#! /bin/sh # view model in the file "model" # Plot the model nx=100 fx=0 dx=80 nz=110 fz=0 dz=50 unif2 <model ninf=4 nx=$nx nz=$nz dx=$dx dz=$dz \ v00=5000.0,6000.0,8000.0,10000.0,15000.0 | psimage title="Wavespeed profile" n1=$nz f1=$fz \ d1=$dz n2=$nx f2=$fx d2=$dx >model.eps echo echo "Output is PostScri...
Shell
#! /bin/sh # make data for NMO demo, goes into file: modeldata # Note that since dsx=dgx, full fold is at most 32 (NOT 64), # but in this quick demo we have only 12 shots, so fold is at most 12 ######Work in kft instead of km (synlv puts 10^3 in header fields)###### # ref="1:1,2;4,2" reflector(s): "amplitude:x...
Shell
#! /bin/sh # display velocity scans and "picks" # Look at velocity scans -- in reality would make picks interactively nv=120 dv=75.0 fv=4000.0 fold=12 # only have 12 shots, otherwise would be 64/2=32 for dsx=dgx nout=501 # ns dxout=0.004 for cdp in 1500 2000 2500 3000 do suwind <modeldata key=cdp min=$cdp max=$cdp ...
Shell
#! /bin/sh # clean up files made by NMO demo # deliberately leave stkvel.p in place in case Xvelocity not run rm -f modeldata nmodata stackdata panel* rm -f unisam*.p rm -f *.eps mpicks* stkvel* par.* exit
Shell
#! /bin/sh # view model in the file "model" WIDTH=300 HEIGHT=400 WIDTHOFF=0 HEIGHTOFF=50 # Plot the model nx=100 fx=0 dx=80 nz=110 fz=0 dz=50 unif2 <model ninf=4 nx=$nx nz=$nz dx=$dx dz=$dz \ v00=5000.0,6000.0,8000.0,10000.0,15000.0 | ximage n1=$nz f1=$fz d1=$dz n2=$nx f2=$fx d2=$dx windowtitle="Model" \ legend=1 ...
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=modeldata vpicks=stkvel.p1 normpow=0 slowness=0 cdpmin=1500 cdpmax=3500 dcdp=500 fold=12 # only hav...
Shell
#! /bin/sh # do and display nmo and stack # Do NMO sunmo <modeldata par=stkvel.p1 >nmodata # Display NMO suwind <nmodata key=sx s=1400 j=250 | sugain tpow=2 gpow=0.5 | supsimage label1="Time" label2="Gather" \ title="Every 5th Shot Record After NMO" \ windowtitle="NMO" legend=1 units="amplitude" \ f2=1 d2=0.07812...
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=modeldata vpicks=stkvel.p1 normpow=0 slowness=0 cdpmin=1500 cdpmax=3500 dcdp=500 fold=12 # only hav...
Shell
#! /bin/sh #Plot the entire data set # Note: 64 offsets at nominal unit spacing (tracl), so d2 = 1/64 supsimage <modeldata perc=99 title="Shot Gathers"\ label1="Time (sec)" label2="Shot Gather" f2=1 d2=0.015625 >allshots.eps # Plot some shot records (d2=5/64) suwind <modeldata key=sx s=1400 j=250 | sugain tpow=2 gp...
Shell
#! /bin/sh WIDTH=300 WIDTHOFF=315 HEIGHT=400 HEIGHTOFF=50 # Plot the entire data set (for debugging, not shown here) # Note: 64 offsets at nominal unit spacing (tracl), so d2 = 1/64 #suximage <modeldata perc=99 title="Shot Gathers"\ # label1="Time (sec)" label2="Shot Gather" f2=1 d2=0.015625 \ # wbox=$WIDTH hbox=$HEI...
Shell
#! /bin/sh # do and display nmo and stack WIDTH=300 WIDTHOFF3=630 WIDTHOFF4=945 HEIGHT=400 HEIGHTOFF=50 # Do NMO sunmo <modeldata par=stkvel.p1 >nmodata # Display NMO suwind <nmodata key=sx s=1400 j=250 | sugain tpow=2 gpow=0.5 | suximage label1="Time" label2="Gather" \ title="Every 5th Shot Record After NMO" \ wi...
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=modeldata vpicks=stkvel.p1 normpow=0 slowness=0 cdpmin=1500 cdpmax=3500 dcdp=500 fold=12 # only hav...
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=modeldata vpicks=stkvel.p1 normpow=0 slowness=0 cdpmin=1500 cdpmax=3500 dcdp=500 fold=12 # only hav...
Shell
#! /bin/sh # Clean - recursively call Clean in the demo directories # Test back-up dir first (at CWP must run on dobrin) DEMODIR=$CWPROOT/src/demos/Velocity_Analysis find . -name core -print -exec rm -f {} \; find . -name \.nfs\* -print -exec rm -f {} \; # Take care of subdirectories for i in `ls` do if [ -d $i ...
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 # shell for Kirchhoff depth migration set -v sukdmig2d < data par=kdmig.par>kd.data exit 0
Shell
#! /bin/sh # shell for uniformly sampling velocity from a layered model set -v # building velocity model for ray tracing nz=51 dz=50 fz=.0 labelz="Depth (m)" nx=81 dx=50 fx=0.0 labelx="Distance (m)" ninf=0 npmax=201 unif2 <input >vfile ninf=$ninf npmax=$npmax \ nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx \ v00=15...
Shell
#! /bin/sh # estimate velocity parameter perturbation from covariance of imaged # depths ncip=5 noff=5 moff=3 velpert<dfile dzfile=dzfile ncip=$ncip noff=$noff moff=$moff \ >deltap
Shell
#! /bin/sh # shell for plotting synthetic data and migrated data supsimage<data perc=99.5\ label1="Time (s)" label2="Midpoint (m)" \ ybox=4 hbox=4 \ title="Synthetic Data" > syndata.eps # Plotting migrated data
Shell
#! /bin/sh rm *data* *file* mpicks*
Shell
#! /bin/sh # shell for plotting synthetic data and migrated data supsimage<data perc=99.5\ label1="Time (s)" label2="Midpoint (m)" \ ybox=4 hbox=4 \ title="Synthetic Data" > syndata.eps # Plotting migrated data
Shell
#! /bin/sh # shell for generating traveltime by ray tracing set -v # generate tables of traveltime, traveltime derivative, and cosine of # emergence angles rayt2d < vfile par=rayt2d.par exit 0
Shell
#! /bin/sh # shell for uniformly sampling velocity from a layered model set -v # building velocity model for ray tracing nz=51 dz=50 fz=.0 labelz="Depth (m)" nx=81 dx=50 fx=0.0 labelx="Distance (m)" ninf=0 npmax=201 unif2 <input >vfile ninf=$ninf npmax=$npmax \ nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx \ v00=18...
Shell
#! /bin/sh # Residual moveout analyses for the cip gathers # residual moveout is represented by z(h)^2 = z(0)^2+r*h^2 # where h is half an offset # Authors: Zhenyue # NOTE: Comment lines preceeding user input start with ## #set -x ## Set parameters input=kd.data rpicks=res.p1 cdpmin=800 cdpmax=2000 dcdp=600 fold=5 ...
Shell
#! /bin/sh # shell for generating prestack synthetic data gathers set -x output=data # build velocity model using "unif2" nz=51 dz=50 fz=.0 labelz="Depth (m)" nx=81 dx=50 fx=0.0 labelx="Distance (m)" ninf=0 npmax=201 unif2 <input >vfile1 ninf=$ninf npmax=$npmax \ nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx \ v00...
Shell
#! /bin/sh # determine depth derivatives from ratios from two migration outputs #set -x nx=5 dx=15 fx=800 noff=5 doff=200 off0=100 fz=0 dz=10 nz=251 nxw=2 nzw=2 suwind<kd.data key=cdp min=800 max=2000|sustrip>infile suwind<outfile1 key=cdp min=800 max=2000|sustrip>afile > dzfile \ dzdv <infile par=cig.par nx...
Shell
#! /bin/sh # shell for Kirchhoff modeling for linear v(x,z) #set -x nt=1000 dt=0.004 ft=0.0 tmin=0.0 fxs=1.5 dxs=0.05 nxs=40 fxo=0.0 dxo=0.05 nxo=40 fpeak=30 er=0 ls=0 echo "Migrating data" echo "^^^^^^^^^^^^^^" sukdmig2d < TEST.data par=kdmigan.par > migrate.data exit 0
Shell
#! /bin/sh # Residual moveout analyses for the image gathers # residual moveout is represented by z(h)^2 = z(0)^2+r1*h^2+r2*h^4/[z(0)^2+h^2] # where h is half offset # Authors: Debashish Sarkar # NOTE: Comment lines preceeding user input start with ## #set -x ## Set parameters input=migrate.data rpicks=res.p1 cdpmin...
Shell
#! /bin/sh # shell for Kirchhoff modeling for linear v(x,z) #set -x nt=1000 dt=0.004 ft=0.0 tmin=0.0 fxs=1.5 dxs=0.05 nxs=40 fxo=0.0 dxo=0.05 nxo=40 fpeak=30 er=0 ls=0 echo "Generating data" echo "^^^^^^^^^^^^^" susynlvfti smooth=1 nt=$nt dt=$dt ft=$ft nxs=$nxs dxs=$dxs fxs=$fxs fxo=$fxo \ dxo=$dxo nxo=$nxo tmin=$...
Shell
#! /bin/sh # Demo for P- and SV-wave raytracing in heterogeneous anisotropic (VTI) media # RAYT2DAN # Debashish Sarkar, June 2003 set -x # define parameter fields nz=150 dz=20 fz=0 labelz="Depth (m)" nx=600 dx=20 fx=0 labelx="Midpoint (m)" # define output dimensions nxo=100 dxo=100 fxo=0 nzo=60 dzo=50 fzo=0 # def...
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 sukdmig2d < TEST.data par=kdmigan.par > migrate.data exit 0
Shell
#! /bin/sh # Residual moveout analyses for the image gathers # residual moveout is represented by z(h)^2 = z(0)^2+r1*h^2+r2*h^4/[z(0)^2+h^2] # where h is half-offset # Authors: Debashish Sarkar # NOTE: Two reflectors need to picked to constrain the parameters. #set -x ## Set parameters input=migrate.data rpicks=res.p...
Shell
#! /bin/sh # shell for Kirchhoff modeling for linear v(x,z) set -x nt=1000 dt=0.004 ft=0.0 tmin=0.0 fxs=0.0 dxs=0.05 nxs=150 fxo=0.0 dxo=0.05 nxo=40 fpeak=30 er=0 ls=0 susynlvfti smooth=1 nt=$nt dt=$dt ft=$ft nxs=$nxs dxs=$dxs fxs=$fxs fxo=$fxo \ dxo=$dxo nxo=$nxo tmin=$tmin v00=2.0 dvdx=0.2 dvdz=0.6 \ fpeak=$fpea...
Shell
#! /bin/sh # Demo for P- and SV-wave raytracing in heterogeneous anisotropic (VTI) media # RAYT2DAN # Debashish Sarkar, June 2003 set -x # define parameter fields nz=150 dz=20 fz=0 labelz="Depth (m)" nx=600 dx=20 fx=0 labelx="Midpoint (m)" # define output dimensions nxo=100 dxo=100 fxo=0 nzo=60 dzo=50 fzo=0 # def...
Shell
#! /bin/sh # Demo for P- and SV-wave raytracing in heterogeneous anisotropic (VTI) media # RAYT2DAN # Debashish Sarkar, June 2003 set -x # define parameter fields nz=100 dz=20 fz=0 labelz="Depth (m)" nx=100 dx=20 fx=0 labelx="Midpoint (m)" # define output dimensions nxo=100 dxo=20 fxo=0 nzo=100 dzo=20 fzo=0 # def...
Shell
#! /bin/sh # make synthetic data with 30, 45, 60, 80, and 90 degree dips # for offset 0 km susynlvfti \ delta=0.0 epsilon=0.15 v00=3 fpeak=25 fxo=0 \ dxm=0.025 nxm=401 dt=0.010 nt=601 dvdz=0 dvdx=0 \ ref="1:2.0,1.0,2.34641,1.2;3.5,1.2" \ ref="1:1.8,1.0,2.3,1.5;3.5,1.5" \ ref="1:1.6,1.0,2.17735,2.0;3.5,2.0" \ ref="1:1....
Shell
#! /bin/sh suwind <etascan.su key=igi min=0 max=10 | \ supsimage label1="Time (s)" \ f2=0 d2=0.025 hbox=2.67 \ bclip=3.0 wclip=-1.0 >etascana.eps suwind <etascan.su key=igi min=15 max=25 | \ supsimage label1="Time (s)" \ f2=0 d2=0.025 hbox=2.67 \ bclip=3.0 wclip=-1.0 >etascanb.eps p...
Shell
#! /bin/sh # # This is about a 6 1/2 hour wall clock time job date susynlvfti \ delta=0.0 epsilon=0.15 v00=3 fpeak=20 fxo=0 dxo=0.1 nxo=31 \ dxm=0.025 nxm=601 dt=0.010 nt=801 dvdz=0 dvdx=0 \ ref="1:2.0,1.0,2.34641,1.2;3.5,1.2" \ ref="1:1.8,1.0,2.3,1.5;3.5,1.5" \ ref="1:1.6,1.0,2.17735,2.0;3.5,2.0" \ ref="1:1.4,1.0,1.8...
Shell
#! /bin/sh rm *.su INSTALL testtifowler *.eps
Shell
#! /bin/sh # Fimpulse -- view impulse responses # output is in the form of PostScript files # # compile testtifowler make # Post-stack migration response ./testtifowler v=3000 dt=0.004 nspk=4 t1=0.10 t2=0.25 t3=0.50 t4=0.75 | \ sufilter f=20,50,70,80 amps=1.,1.,0.,0. | \ sutifowler choose=3 option=2 vmin=3000 vmax...
Shell
#! /bin/sh rm junkd picked.values
Shell
#! /bin/sh #set -x nx=70 dx=50 fx=200 nz=101 dz=40 fz=0 DVDZ=0.0 dv=10 nt=401 dt=.006 susynlvfti fpeak=30 fxo=0.2 fxm=.25 dxm=.05 nxm=1 \ nxo=$nx dxo=.05 dt=$dt nt=$nt \ v00=2.0 dvdz=$DVDZ delta=0 epsilon=.1 dvdx=.0 ob=0 \ ref="1:0.0,1.0;0.5,1.0" | suaddnoise sn=5 >junkd suximage <junkd xbox=750 perc=99.9 f2=...
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 rm -f template template2 moviefile exit
Shell
#! /bin/sh # smooth velocity profiles with smooth3d WIDTH=1000 HEIGHT=800 WIDTHOFF=100 HEIGHTOFF=100 n1=100 n2=100 n3=1 d1=10 d2=10 outfile=template outfile2=template2 # use unif2 to output test datafile # $outfile is an ascii file that shows the type of input unif2 requires unif2 tfile=$outfile unif2 < $outfile me...
Shell
#! /bin/sh # build velocity profiles with unif2 WIDTH=420 HEIGHT=400 WIDTHOFF1=0 WIDTHOFF2=430 WIDTHOFF3=0 WIDTHOFF4=430 HEIGHTOFF1=50 HEIGHTOFF2=50 HEIGHTOFF3=500 HEIGHTOFF4=500 HEIGHTOFF5=275 WIDTHOFF5=860 outfile=template n1=100 n2=100 d1=10 d2=10 # use unif2 to output test datafile # $outfile is an ascii file th...
Shell
#! /bin/sh # smooth velocity profiles with smoothint WIDTH=1000 HEIGHT=800 WIDTHOFF=100 HEIGHTOFF=100 n1=100 n2=100 d1=10 d2=10 outfile=template # use unif2 to output test datafile # $outfile is an ascii file that shows the type of input unif2 requires unif2 tfile=$outfile # smoothint2, loop over different "r" val...
Shell
#! /bin/sh # smooth velocity profiles with smooth2 WIDTH=1000 HEIGHT=800 WIDTHOFF=100 HEIGHTOFF=100 n1=100 n2=100 d1=10 d2=10 outfile=template outfile2=template2 # use unif2 to output test datafile # $outfile is an ascii file that shows the type of input unif2 requires unif2 tfile=$outfile unif2 <$outfile method=sp...
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 top d...
Shell
#! /bin/sh # X windows plot of output WIDTH=400 HEIGHT=600 WIDTHOFF1=10 HEIGHTOFF1=20 nx=121 nz=51 dx=50 dz=50 fx=0.00 fz=0.00 ximage <data.v legend=1 \ n2=$nx n1=$nz d1=$dz d2=$dx f2=$fx \ label1="Depth (m)" label2="Midpoint (m)" \ wbox=$WIDTH hbox=$HEIGHT xbox=$WIDTHOFF1 ybox=$HEIGHTOFF1 \ title="Velocity" &...
Shell
#! /bin/sh rm -f template template2 moviefile data* exit
Shell
#! /bin/sh # make velocity set -x nx=121 fx=0.00 dx=50 nz=51 fz=0.00 dz=50 v000=1500 dvdz=0.2 dvdx=0.3 l1c=1000 l2c=2000 exc=1 vlens=1000 tlens=1000 dlens=2500 xlens=2500 ylens=0 zlens=800 vzc=500 makevel nx=$nx fx=$fx dx=$dx nz=$nz fz=$fz dz=$dz \ v000=$v000 dvdz=$dvdz dvdx=$dvdx l1c=$l1c l2c=$l2c exc=$exc \ ...
Shell
#! /bin/sh rm -f template template2 moviefile *.bin exit
Shell
#! /bin/sh zcat marmhard.dat.gz | a2b n1=1 > marmhard.bin ximage n1=122 n2=384 < marmhard.bin \ xbox=10 ybox=20 wbox=768 hbox=244 \ legend=1 title="Marmousi model" & smooth2 n1=122 n2=384 r1=5 r2=5 < marmhard.bin > marmsmooth.bin ximage n1=122 n2=384 < marmsmooth.bin \ xbox=10 ybox=350 wbox=768 hbox=244 \ legend=...
Shell
#! /bin/sh rm *.v junk*
Shell
#! /bin/sh # Shell: Unisam2 # use unisam2 to make a uniformly sampled wavespeed profiles # Author: John Stockwell, 27 August 1992 set -x # Background Velocity Model 1 # constant wavespeed (of 1) model 101x101 samples well1="1 1.5 1.8" # make ascii data well2="1 1.2 1.8" # make ascii da...
Shell
#! /bin/sh rm -f template template2 moviefile *.bin exit
Shell
#! /bin/sh # build velocity profiles with unif2 WIDTH=320 HEIGHT=300 WIDTHOFF1=0 WIDTHOFF2=330 WIDTHOFF3=0 WIDTHOFF4=330 HEIGHTOFF1=50 HEIGHTOFF2=50 HEIGHTOFF3=400 HEIGHTOFF4=400 HEIGHTOFF5=275 WIDTHOFF5=860 outfile=template inprofile=inprofile outprofile=outprofile n1=100 n2=100 d1=10 d2=10 # use unif2 to output te...
Shell
#! /bin/sh rm *lens
Shell
#! /bin/sh # --- Example shell for vel2stiff # this code transforms velocities, density and Thomsen # parameters into elastic stiffness coefficients for # isotropic or VTI medium. # # Sverre Brandsberg-Dahl 1999 set -x nx=91 fx=0.0 dx=50 nz=51 fz=0.0 dz=50 vp0=1500 dvpdz=0.8 dvpdx=0.0 vplen...
Shell
#! /bin/sh # view model in the file "model" # Plot the model nx=100 fx=0 dx=80 nz=110 fz=0 dz=50 unif2 <model ninf=4 nx=$nx nz=$nz dx=$dx dz=$dz \ v00=5000.0,6000.0,8000.0,10000.0,15000.0 | psimage n1=$nz f1=$fz d1=$dz n2=$nx f2=$fx d2=$dx >model.eps echo echo "Output is PostScript file: model.eps" echo echo "Yo...
Shell
#! /bin/sh PSmodel MakeData PSdata PSvelocity PSnmo exit
Shell
#! /bin/sh # make data for NMO demo, goes into file: modeldata # Note that since dsx=dgx, full fold is at most 32 (NOT 64), # but in this quick demo we have only 12 shots, so fold is at most 12 ######Work in kft instead of km (synlv puts 10^3 in header fields)###### # ref="1:1,2;4,2" reflector(s): "amplitude:x...
Shell
#! /bin/sh # display velocity scans and "picks" # Look at velocity scans -- in reality would make picks interactively nv=120 dv=75.0 fv=4000.0 fold=12 # only have 12 shots, otherwise would be 64/2=32 for dsx=dgx nout=501 # ns dxout=0.004 for cdp in 1500 2000 2500 3000 do suwind <modeldata key=cdp min=$cdp max=$cdp ...
Shell
#! /bin/sh # clean up files made by NMO demo # deliberately leave stkvel.p in place in case Xvelocity not run rm -f modeldata nmodata stackdata rm -f unisam*.p rm -f *.eps junk* exit
Shell
#! /bin/sh # view model in the file "model" WIDTH=300 HEIGHT=400 WIDTHOFF=0 HEIGHTOFF=50 # Plot the model nx=100 fx=0 dx=80 nz=110 fz=0 dz=50 unif2 <model ninf=4 nx=$nx nz=$nz dx=$dx dz=$dz \ v00=5000.0,6000.0,8000.0,10000.0,15000.0 | ximage n1=$nz f1=$fz d1=$dz n2=$nx f2=$fx d2=$dx windowtitle="Model" \ legend=1 ...
Shell
#! /bin/sh # do and display nmo and stack # Do NMO sunmo <modeldata par=stkvel.p >nmodata # Display NMO suwind <nmodata key=sx s=1400 j=250 | sugain tpow=2 gpow=0.5 | supsimage label1="Time" label2="Gather" \ title="Every 5th Shot Record After NMO" \ f2=1 d2=0.078125 f2num=1 d2num=5 >nmo.eps # Sort to CDP's and s...
Shell
#! /bin/sh #Plot the entire data set # Note: 64 offsets at nominal unit spacing (tracl), so d2 = 1/64 supsimage <modeldata perc=99 title="Shot Gathers"\ label1="Time (sec)" label2="Shot Gather" f2=1 d2=0.015625 >allshots.eps # Plot some shot records (d2=5/64) suwind <modeldata key=sx s=1400 j=250 | sugain tpow=2 gp...
Shell
#! /bin/sh WIDTH=300 WIDTHOFF=315 HEIGHT=400 HEIGHTOFF=50 # Plot the entire data set (for debugging, not shown here) # Note: 64 offsets at nominal unit spacing (tracl), so d2 = 1/64 #suximage <modeldata perc=99 title="Shot Gathers"\ # label1="Time (sec)" label2="Shot Gather" f2=1 d2=0.015625 \ # wbox=$WIDTH hbox=$HEI...
Shell
#! /bin/sh # display velocity scans and "picks" set -v WIDTH=300 HEIGHT=400 WIDTHOFF1=0 WIDTHOFF2=315 WIDTHOFF3=630 WIDTHOFF4=945 HEIGHTOFF1=500 # Look at velocity scans -- in reality would make picks interactively, # using, e.g., the mpicks option of xcontour nc=15 fc=.4 to create the par.$cdp files. nv=120 dv=75....
Shell
#! /bin/sh # do and display nmo and stack WIDTH=300 WIDTHOFF3=630 WIDTHOFF4=945 HEIGHT=400 HEIGHTOFF=50 # Do NMO sunmo <modeldata par=stkvel.p >nmodata # Display NMO suwind <nmodata key=sx s=1400 j=250 | sugain tpow=2 gpow=0.5 | suximage label1="Time" label2="Gather" \ title="Every 5th Shot Record After NMO" \ win...
Shell
#! /bin/sh Xmodel MakeData Xdata Xvelocity Xnmo exit
Shell
#! /bin/sh # shell for finite-difference solutions set -v xs=1500 zs=0 nz=51 fz=0.0 dz=50 nx=121 dx=50 fx=-1500 wkbj <data.v >tfile xs=$xs zs=$zs \ nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx exit 0
Shell
#! /bin/sh # X windows plot of output nx=121 nz=51 dx=50 dz=50 fx=0.00 fz=0.00 xmovie <data.v -geometry 600x250+0+25 \ n2=$nx n1=$nz d1=$dz d2=$dx f2=$fx perc=100 \ label1="Depth (m)" label2="Midpoint (m)" cmap=gray \ title="Velocity" & nz=51 dz=50 fz=0.0 xs=1500 labelz="Depth (m)" nx=121 dx=50 fx=-1500 zs=0 lab...
Shell
#! /bin/sh # Clean up residue from runs rm -f sfile tfile afile bfile data.v *.eps
Shell
#! /bin/sh # make velocity set -x nx=121 fx=0.00 dx=50 nz=51 fz=0.00 dz=50 v000=1500 dvdz=0.2 dvdx=0.3 l1c=1000 l2c=2000 exc=1 vlens=1000 tlens=1000 dlens=2500 xlens=2500 ylens=0 zlens=800 vzc=500 makevel nx=$nx fx=$fx dx=$dx nz=$nz fz=$fz dz=$dz \ v000=$v000 dvdz=$dvdz dvdx=$dvdx l1c=$l1c l2c=$l2c exc=$exc \ ...
Shell
#! /bin/sh # PostScript output demo=wkbj nx=121 nz=51 dx=50 dz=50 fx=0.00 fz=0.00 psimage < data.v \ n2=$nx n1=$nz d1=$dz d2=$dx f2=$fx perc=100 \ label1="Depth (m)" label2="Midpoint (m)" \ title="Velocity" >${demo}.1.eps nz=51 dz=50 fz=0.0 xs=1500 labelz="Depth (m)" nx=121 dx=50 fx=-1500 zs=0 labelx="Distance...
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 rm *.eps core core.* *.bin junk*
Shell
#! /bin/sh dt=0.004 # time sample interval in ray tracing nt=401 # number of time samples in ray tracing fz=0 #first depth sample in velocity nz=122 # number o...
Shell
#! /bin/sh dt=0.004 # time sample interval in ray tracing nt=401 # number of time samples in ray tracing fz=0 #first depth sample in velocity nz=488 # number o...
Shell
#! /bin/sh # Clean.sh created data files rm -f *.eps vdata tempdata cd Plotting ; Clean.sh exit
Shell
#! /bin/sh rm junk* exit 0
Shell
#! /bin/sh # noise movie jmax=30 j=1 rm junk1.su while [ "$j" -ne "$jmax" ] do suplane | sufilter | suaddnoise sn=$j >> junk1.su j=`expr $j + 1` done suxmovie < junk1.su n2=32 loop=1 title="suaddnoise sn=%g" clip=1.0 & exit 0
Shell
#! /bin/sh # Clean created data files cd Psmerge ; Clean.sh exit
Shell
#! /bin/sh rm junk*
Shell
#! /bin/sh # shell script for demonstrating PSMERGE # make data suplane > junk.su suplane | sufilter > junk1.su # make PostScript Plots of data supswigb < junk.su wbox=6 hbox=2.5 \ title="Wiggle trace" label1="sec" label2="traces" > junk1.eps supscontour < junk.su wbox=2.5 hbox=2.5 \ title="Contour Plot" label1="s...
Shell
#! /bin/sh # shell script for demonstrating PSMERGE # make data suplane > junk.su suplane | sufilter > junk1.su # make PostScript Plots of data supswigb < junk.su wbox=7 hbox=4 \ title="Wiggle trace" label1="sec" label2="traces" > junk1.eps supscontour < junk.su \ title="Contour Plot" label1="sec" label2="traces" >...
Shell
#! /bin/sh # Trivial test of suvlength with X Windows graphics WIDTH=700 HEIGHT=900 WIDTHOFF=50 HEIGHTOFF=20 >tempdata >vdata suplane >tempdata # default is 32 traces with 64 samples per trace suplane nt=72 >>tempdata suvlength <tempdata ns=84 | sushw key=tracl a=1 b=1 >vdata # Plot the data suxwigb <vdata \ perc...
Shell
#! /bin/sh # Clean up residue from runs demo=8 rm -f demo${demo}plot demo${demo}par demo${demo}[1-2].eps cshot1plot \ demo${demo}shot demo${demo}traces rm -f data.su
Shell
#! /bin/sh # Run CSHOT with CWP PostScript Graphics demo=8 psfile1=demo${demo}1.eps psfile2=demo${demo}2.eps x1beg=0 x1end=5500 x2beg=-100 x2end=10000 cshot1 | cshotplot >demo${demo}plot outpar=demo${demo}par psgraph <demo${demo}plot par=demo${demo}par style=seismic \ title="Rays for demo$demo" \ label1="Depth (...
Shell
#! /bin/sh # Run CSHOT with CWP X Graphics demo=8 x1beg=0 x1end=7500 x2beg=-100 x2end=32800 ######################################################## cp -f param1_1 param1 cshot1 | cshotplot >demo${demo}plot outpar=demo${demo}par xgraph <demo${demo}plot par=demo${demo}par style=seismic \ -geometry 600x400+6...
Shell
#! /bin/sh # clean directory rm -f refr_file.b topo_file.b blvl_file.b vel_file.b rm -f data.su data_res.su data_res_nmo.su rm -f data_stk.su data_stk_bulk.su rm -f num.b tcdp.b stkpar surfmaker rm -f cmp_11000_raw.ps cmp_11000_rrs.ps rm -f stk.ps stk_bulk.ps INSTALL cd MakeData; Clean.sh exit 0
Shell
#! /bin/sh # nmo correct the data, stack and apply bulk statics #nmo correct data ########################################################### sustkvel v=1640,9840,11480,13120 \ h=100,2900,2000,2000 outpar=stkpar sunmo < data_res.su par=stkpar > data_res_nmo.su ###############################################...
Shell
#! /bin/sh # residual refraction statics script # generate surfaces ############################################################## make surfmaker a2b < blvl_file.dat n1=1 > blvl_file.b a2b < refr_file.dat n1=1 > refr_file.b a2b < vel_file.dat n1=1 > vel_file.b rm blvl_file.dat rm refr_file.dat rm vel_file.dat ###...
Shell
#! /bin/sh suwind < data.su key=cdp min=11000 max=11000 | supswigp \ title="CMP gather - midpoint at 11000 ft" label1="Time (s)" \ label2="Offset (ft)" f2=10000 d2=-200 > cmp_11000_raw.ps suwind < data_res.su key=cdp min=11000 max=11000 | supswigb \ title="CMP gather - midpoint at 11000 ft after residual refraction s...
Shell
#! /bin/sh suwind < data.su key=cdp min=11000 max=11000 | suxwigb \ title="CMP gather - midpoint at 11000 ft" label1="Time (s)" \ xbox=20 ybox=20 wbox=400 hbox=400 \ label2="Offset (ft)" f2=10000 d2=-200 & suwind < data_res.su key=cdp min=11000 max=11000 | suxwigb \ title="CMP gather - midpoint at 11000 ft after resi...
Shell
#! /bin/sh cd ./Stat ; Clean.sh
Shell