code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#! /bin/sh
# Clean.sh created data files
rm -f *.bin *.su
exit
| Shell |
#! /bin/sh
# PSdemo1 - simple example script for sufdmod1, PostScript graphics
# N. Maercklin, Oct. 2006
# Output file names (velocity,density and seismogram):
vfile=velocity.bin
dfile=density.bin
sufile=seismogram.su
# Output PostScript file (three plots on one page):
psfile=demo.ps
# Velocity and density model:
de... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling: part 1, the movie
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=10
WIDTHOFF2=500
HEIGHTOFF1=50
HEIGHTOFF2=530
n1=100 d1=5 f1=0.0 label1="Depth (km)"
n2=100 d2=5 f2=0.0 label2="Distance (km)"
xs=250 zs=300 hsz=50 vsx=250 verbo... | Shell |
#! /bin/sh
# Clean.sh created data files
rm -f *.out junk* *.eps *.ps density* velocity* *.pdf *.su
exit
| Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling: part 1, the movie
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=50
WIDTHOFF2=530
HEIGHTOFF1=50
HEIGHTOFF2=530
n1=500 d1=5 f1=0.0 label1="Depth (km)"
n2=500 d2=5 f2=0.0 label2="Distance (km)"
xs=1250 zs=1250 hsz=1000 vsx=1000 ... | Shell |
#! /bin/sh
# building a model with "unif2"
hsfile=hsseis.out
# build the file of velocities
unif2 < model.unif2 nx=100 nz=500 dx=25 \
v00=5000,5500,6000,6500,7000,7500,8000 dz=10 > velocity.1
# build the file of densities
unif2 < model.unif2 nx=100 nz=500 dx=25 \
v00=1.0,2.25,2.25,2.25,2.35,2.35,2.35 dz=10 > densi... | Shell |
#! /bin/sh
# PSDemo --- example script for sufdmod2
# finite-difference modeling: display model and movie
# Author: John Stockwell
# Modified from various XDemos by Chris Liner 2/12/02
# Big changes...
# 1. deleted (n1,n2) params to unif2 (unused)
# note on use of (dx,dz) in unif2 hardwired model
# added 2x2 s... | Shell |
#! /bin/sh
# PSDemo3 --- example script for sufdmod2
# finite-difference modeling: display model and movie
# Author: John Stockwell
# modified from XDemo3 by Chris Liner 2/11/02
# (also added 2x2 smoothing to velocity model,
# and uses ps2pdf to generate pdf output)
n1=100 d1=5 f1=0.0 label1="Depth (km)"
n2=100 d2=5 ... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling: Test of the PML transparent boundary conditions
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=50
WIDTHOFF2=530
HEIGHTOFF1=50
HEIGHTOFF2=530
n1=200 d1=5 f1=0.0 label1="Depth (km)"
n2=200 d2=5 f2=0.0 label2="Distance (km)"
xs=... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling: part 1, the movie
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=50
WIDTHOFF2=530
HEIGHTOFF1=50
HEIGHTOFF2=530
n1=500 d1=5 f1=0.0 label1="Depth (km)"
n2=500 d2=5 f2=0.0 label2="Distance (km)"
xs=1250 zs=125 hsz=300 vsx=1000 ve... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling: part 1, the movie
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=10
WIDTHOFF2=500
HEIGHTOFF1=50
HEIGHTOFF2=530
n1=100 d1=5 f1=0.0 label1="Depth (km)"
n2=100 d2=5 f2=0.0 label2="Distance (km)"
xs=250 zs=50 hsz=50 vsx=250 verbos... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling: part 1, the movie
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=10
WIDTHOFF2=500
HEIGHTOFF1=50
HEIGHTOFF2=530
n1=100 d1=5 f1=0.0 label1="Depth (km)"
n2=100 d2=5 f2=0.0 label2="Distance (km)"
xs=250 zs=300 hsz=50 vsx=250 verbo... | Shell |
#! /bin/sh
# build velocity profiles with unif2
modelfile=syncline.unif2
velfile=syncline.bin
n1=200
n2=400
d1=10
d2=10
unif2 <$modelfile method=$i ninf=2 nx=$n2 nz=$n1 v00=2000,4000 \
ninf=1 method=spline > $velfile
ximage < $velfile wbox=400 hbox=200 n1=$n1 n2=$n2 d1=$d1 d2=$d2 \
wbox=800 hbox=400 legend=1 tit... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling
# Author: John Stockwell
n1=100 d1=5 f1=0.0 label1="Depth (km)"
n2=100 d2=5 f2=0.0 label2="Distance (km)"
xs=250 zs=250 hsz=250 vsx=250 verbose=2
vsfile="vseis.out" ssfile="sseis.out" hsfile="hseis.out"
tmax=.5 mt=5
makevel nx=$n2 nz=$... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling, part 2 the output files
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=20
WIDTHOFF2=510
WIDTHOFF3=930
HEIGHTOFF1=50
HEIGHTOFF2=530
clip=.5
suwind <vseis.out j=3 | suxwigb clip=$clip \
title="Vertical line of seismograms" \
... | Shell |
#! /bin/sh
# Sufdmod2 --- example script for sufdmod2
# finite-difference modeling, part 2 the output files
# Author: John Stockwell
WIDTH=450
HEIGHT=450
WIDTHOFF1=50
WIDTHOFF2=530
HEIGHTOFF1=50
HEIGHTOFF2=530
suximage <vseis.out clip=1.0 \
title="Vertical line of seismograms" \
windowtitle="Vertical" \
label1="Tim... | Shell |
#! /bin/sh
# building a model with "unif2"
hsfile=hsseis.out
# Use the Marmousi model
zcat $CWPROOT/src/demos/Velocity_Profiles/Marmousi/marmhard.dat.gz |
a2b n1=1 | unisam2 nx2=384 dx2=2 fx2=0 n2=768 d2=1 f2=0 nx1=122 dx1=4 fx1=0 n1=488 d1=1 f1=0 method=linear > velocity.1
# build the file of densities
unif2 < mode... | Shell |
#! /bin/sh
# building a model with "unif2"
hsfile=hsseis.out
# build the file of velocities
unif2 < model.unif2 nx=100 nz=500 dx=25 \
v00=5000,5500,6000,6500,7000,7500,8000 dz=10 > velocity.1
# build the file of densities
unif2 < model.unif2 nx=100 nz=500 dx=25 \
v00=1.0,2.25,2.25,2.25,2.35,2.35,2.35 dz=10 > densi... | Shell |
#! /bin/sh
rm *susyn*
| Shell |
#! /bin/sh
## use susynlv to make synthetic data
susynlv nt=501 dt=0.004 ft=0.0 nxo=2 \
nxs=100 dxs=.025 dxo=.15 fxo=0.025 er=0 ob=0 \
v00=2.0 dvdz=0 dvdx=0 fpeak=30 smooth=1 \
ref="2:-.5,.45;3.,.45" \
ref="2:-.5,.75;3.,.75" \
ref="4:-.5,1.15;3.,1.15" \
ref="6:-.5,1.65;3.,1.65" \
sushw key=d2 a=.05 >susyn.out
# ... | Shell |
#! /bin/sh
WIDTH=320
HEIGHT=400
WIDTHOFF1=0
WIDTHOFF2=400
HEIGHTOFF1=50
HEIGHTOFF2=500
## use susynlv to make synthetic data
susynlv nt=501 dt=0.004 ft=0.0 nxo=2 \
nxs=100 dxs=.025 dxo=.15 fxo=0.025 er=0 ob=0 \
v00=2.0 dvdz=0 dvdx=0 fpeak=30 smooth=1 \
ref="2:-5.5,.45;7.,.45" \
ref="2:-5.5,.75;7.,.75" \
ref="4:-... | 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
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 ]
then
cd $i
... | 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
# LAS file location and name
las=./las/well_logs.las
# curve order in las file (p-sonic, s-sonic, density)
pson=2
sson=3
den=4
# bacus averaging window length (in depth samples)
# (note depth is in meters after las2su)
navg=201
# output window geometry
WIDTH=300
HEIGHT=400
WIDTHOFF1=0
WIDTHOFF2=315
WIDT... | Shell |
#! /bin/sh
rm *.su
| Shell |
#! /bin/sh
rm *.asc *.su
| Shell |
#! /bin/sh
# run las2su on file in LAS format.
las2su < test.las > las.su
suxwigb < las.su title="well log in SU format" clip=100 &
exit 0
| Shell |
#! /bin/sh
sustrip < data3d.su > data3d.bin
# slices on top and back sides of cube
# push right hand mouse button to see menu, select planes to view
trip < data3d.bin verbose=1 n1=256 n2=32 n3=32 tbs=.2 \
cx=0 cy=0 cz=0 &
exit 0
| Shell |
#! /bin/sh
rm -f data3d.* temp
exit
| Shell |
#! /bin/sh
sustrip < data3d.su > data3d.bin
# slices on bottom and back sides of cube
# push right hand mouse button to see menu, select planes to view
trip < data3d.bin verbose=1 n1=256 n2=32 n3=32 tbs=.2 \
cx=0 cy=0 cz=255 &
exit 0
| Shell |
#! /bin/sh
sustrip < data3d.su > data3d.bin
# slices centered through cube
# push right hand mouse button to see menu, select planes to view
trip < data3d.bin verbose=1 n1=256 n2=32 n3=32 tbs=.5 \
cx=16 cy=16 cz=128 &
exit 0
| Shell |
#! /bin/sh
To run the 3D data viewing demo type names of the following shell scripts
on the commandline.
Make3Ddata --- generate 3D data file: data3d.su
Trip1 --- planes pass through the center of data cube
Trip2 --- planes on top and back sides of data cube
Trip3 --- planes on bottom and back sides of... | Shell |
#! /bin/sh
# Create a 3D data set for Bill Wingle's block program--the
# name should end with ".su"
#
# This data set consists of one shot per line: the
# shotpoints move orthogonal to the receiver line
# with the scattering point below the midpoint of
# surface array.
#
# The data set consists of 32 receiver lines and... | Shell |
#! /bin/sh
sustrip < data3d.su > data3d.bin
# slices on bottom and front sides of cube
# push right hand mouse button to see menu, select planes to view
trip < data3d.bin verbose=1 n1=256 n2=32 n3=32 tbs=.2 \
cx=31 cy=31 cz=255 &
exit 0
| Shell |
#! /bin/sh
rm -f *.su temp *.bin
exit
| Shell |
#! /bin/sh
# Create a 3D data set for Bill Wingle's block program--the
# name should end with ".su"
#
# This data set consists of one shot per line: the
# shotpoints move orthogonal to the receiver line
# with the scattering point below the midpoint of
# surface array.
#
# The data set consists of 32 receiver lines and... | Shell |
#! /bin/sh
# Clean created data files
rm -f vibrodata.* recon.* *.eps
exit 0
| Shell |
#! /bin/sh
cd Demo* ; Clean
| Shell |
#! /bin/sh
rm *.dat reflection* junk* *.eps createf INSTALL *.2p *.ps
| Shell |
#! /bin/sh
p2=6
p1=6
size=64
infile=ffile.dat
reconfile=recon.dat
mrafile=mra.dat
dfile=d.dat
createf > $infile
mrafxzwt verbose=1 order=4 p2=$p2 p1=$p1 \
mralevel2=3 mralevel1=3 \
reconfile=$reconfile n1=$size n2=$size\
dfile=$dfile recon=0 \
<$infile >$mrafile
psimage n1=$size n2=$size title="Original Mod... | Shell |
#! /bin/sh
p2=6
p1=6
size=64
infile=xy.dat
unisam verbose=1 nout=$size xin=0,12,51,63 yin=0,0,0,0 \
nsint=1 amp=-0.3 isint=1 nwidth=4> x.dat
farith verbose=1 in=x.dat n=$size op=cartprod in2=x.dat \
> $infile
reconfile=recon.dat
mrafile=mra.dat
dfile=d.dat
mrafxzwt verbose=1 order=4 p2=$p2 p1=$p1 \
n1=$s... | Shell |
#! /bin/sh
S=. #the directory where your data is
p1=9 p2=8
nc1=256 nc2=128
n1=750 n2=369
nt1=512 nt2=256
data=$S/model.su
trimfile=$S/trimfile.2p
infile=$S/model.2p
mrafile=$S/mramodel.2p
dfile=$S/dmodel.2p
dmrafile=$S/dmramodel.2p
reconfile=$S/reconmodel.2p
reconmrafile=$S/reconmramodel.2p
mraps=$S/mraMarmousi.ps
di... | Shell |
#! /bin/sh
WIDTH=420
HEIGHT=300
XOFF1=0
XOFF2=425
YOFF1=2
YOFF2=450
MARM=$CWPROOT/src/demos/Velocity_Profiles/Marmousi
S=.
zcat $MARM/marmhard.dat.gz | a2b n1=1 |
unisam2 nx2=384 dx2=2.6667 fx2=0 n2=1024 d2=1 f2=0 nx1=122 \
dx1=4.1967 fx1=0 n1=512 d1=1 f1=0 method=linear | suaddhead ns=512 > model.su
p1=9 p2=10
#n... | Shell |
#! /bin/sh
WIDTH=300
HEIGHT=420
WIDTHOFF1=0
WIDTHOFF2=305
HEIGHTOFF1=2
HEIGHTOFF2=450
p2=6
p1=6
size=64
infile=ffile.dat
reconfile=recon.dat
mrafile=mra.dat
dfile=d.dat
make
./createf > $infile
mrafxzwt verbose=1 order=4 p2=$p2 p1=$p1 \
mralevel2=3 mralevel1=3 reconfile=$reconfile \
dfile=$dfile recon=0 n1=$siz... | Shell |
#! /bin/sh
WIDTH=300
HEIGHT=420
WIDTHOFF1=0
WIDTHOFF2=305
HEIGHTOFF1=2
HEIGHTOFF2=450
p2=6
p1=6
size=64
infile=xy.grid
unisam verbose=1 nout=$size xin=0,12,51,63 yin=0,0,0,0 \
nsint=1 amp=-0.3 isint=1 nwidth=4> x.grid
farith verbose=1 in=x.grid n=$size op=cartprod in2=x.grid \
> $infile
reconfile=recon.da... | 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 uniformly sampling velocity from a layered model
set -v
nz=51 dz=50 fz=0.0 labelz="Depth (m)"
nx=201 dx=50 fx=0 labelx="Distance (m)"
ninf=0 npmax=201
unif2 <input_datum >vfile_datum method=mono ninf=$ninf npmax=$npmax \
nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx \
v00=2000\
dvdz=0
exit 0
| Shell |
#! /bin/sh
origdata=model.data
data=shot_TOPO.data
shot=4000
rec1=`expr $shot - 2000`
rec2=`expr $shot + 2000`
suwind<$data key=sx min=$shot max=$shot |
suwind key=gx min=$rec1 max=$rec2 |
suwind tmin=0 tmax=3.0 |
suximage legend=1 f2=-2.0 d2=0.025 label1="Time (s)" label2="Offset (km)" \
title="Shot $shot with to... | Shell |
#! /bin/sh
# shell for generating traveltimes by ray tracing
set -v
rayt2d <vfile_datum par=rayup.par
exit
| Shell |
#! /bin/sh
rm *.eps data* *.data jpfile* tfile* vfile*
| Shell |
#! /bin/sh
data=shot_TOPO.data
shot=4000
rec1=`expr $shot - 2000`
rec2=`expr $shot + 2000`
suwind<$data key=sx min=$shot max=$shot |
suwind key=gx min=$rec1 max=$rec2 |
suwind tmin=0 tmax=3.0 |
supswigb f2=-2.0 d2=0.025 label1="Time (s)" label2="Offset (km)" \
title="Shot $1 from topography" perc=99.2 > data.eps
... | Shell |
#! /bin/sh
#
#set -x
output=model.data
nt=501 dt=0.008 ft=0.0 tmin=0.2 nxs=181 dxs=0.025 fxs=2.75 nxo=181 \
fxo=-2.25 dxo=0.025 fpeak=15 ls=1 dvdx=0.2 dvdz=0.6 \
x0=0.0 z0=0 v00=2
susynlv dt=$dt ft=$ft nxs=$nxs dxs=$dxs fxs=$fxs nxo=$nxo dxo=$dxo \
fxo=$fxo tmin=$tmin dvdx=$dvdx dvdz=$dvdz \
fpeak=$fpeak ls=$ls nt=$... | Shell |
#! /bin/sh
# shell for Kirchhoff Wave Equation Datuming for pre-stack data
#set -v
data=model.data
echo "This script will take a few minutes on a 2 ghz workstation."
sudatumk2dr<$data par=kzup.par \
jpfile=jpfile.rec>kzshot.data
susort<kzshot.data>receiv.data gx sx
sudatumk2ds<receiv.data par=kzup.par \
jpfile=jpfi... | Shell |
#! /bin/sh
# shell for uniformly sampling velocity from a layered model
set -v
nz=51 dz=50 fz=0.0 labelz="Depth (m)"
nx=201 dx=50 fx=0 labelx="Distance (m)"
ninf=0 npmax=500
unif2 <input_datum >vfile_datum method=mono ninf=$ninf npmax=$npmax \
nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx \
v00=2000 \
dvdz=0
exit 0
... | Shell |
#! /bin/sh
flatdata=../Make_Data/model.data
topodata=../Make_Data/shot_TOPO.data
datumeddata=shot_DATUM.data
shot=4000
rec1=`expr $shot - 2000`
rec2=`expr $shot + 2000`
# plot flat data
suwind<$flatdata key=sx min=$shot max=$shot |
suwind key=gx min=$rec1 max=$rec2 |
suwind tmin=0 tmax=3.0 |
suximage legend=1 f2=-2... | Shell |
#! /bin/sh
rm *.eps data* *.data jpfile* tfile* vfile*
| Shell |
#! /bin/sh
data=shot_TOPO.data
shot=4000
rec1=`expr $shot - 2000`
rec2=`expr $shot + 2000`
suwind<$data key=sx min=$shot max=$shot |
suwind key=gx min=$rec1 max=$rec2 |
suwind tmin=0 tmax=3.0 |
supswigb f2=-2.0 d2=0.025 label1="Time (s)" label2="Offset (km)" \
title="Shot $1 from topography" perc=99.2 > data.eps
... | Shell |
#! /bin/sh
#
#set -x
output=model.data
nt=501 dt=0.008 ft=0.0 tmin=0.2 nxs=181 dxs=0.025 fxs=2.75 nxo=181 \
fxo=-2.25 dxo=0.025 fpeak=15 ls=1 dvdx=0.2 dvdz=0.6 \
x0=0.0 z0=0 v00=2
susynlv dt=$dt ft=$ft nxs=$nxs dxs=$dxs fxs=$fxs nxo=$nxo dxo=$dxo \
fxo=$fxo tmin=$tmin dvdx=$dvdx dvdz=$dvdz \
fpeak=$fpeak ls=$ls nt=$... | Shell |
#! /bin/sh
# shell for generating traveltimes by ray tracing
set -v
rayt2d <vfile_datum par=ray_down.par
exit
| Shell |
#! /bin/sh
# shell for Kirchhoff Wave Equation Datuming for pre-stack data
#set -v
data=../Make_Data/shot_TOPO.data
echo "This script will take a few minutes on a 2 ghz workstation."
sudatumk2dr<$data par=kz_down.par \
jpfile=jpfile.rec>kzshot.data
susort<kzshot.data>receiv.data gx sx
sudatumk2ds<receiv.data par=kz_... | 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
#
#------------Geometry Assignment & Sort-----------------------------------
#
input=mig_950.data
suwind<$input key=offset min=950 max=950 |
suwind tmax=4.0 |suwind key=tracr min=101 max=301 |
suximage legend=1 label1="Depth (km)" label2="Midpoint (km)" d1=0.005 \
f2=2.5 d2=0.025 perc=99. \
title="Common-... | Shell |
#! /bin/sh
# shell for smoothing a uniformly sampling velocity
set -v
n1=61 r1=150 dz=50 fz=-500 labelz="Depth (m)"
n2=201 r2=150 dx=50 fx=0 labelx="Midpoint (m)"
d1r=50 n1r=61 n2r=201 d2r=50
# smooth velocity and resample
smooth3d<vfile_mig r1=$r1 r2=$r2 d1=$dz d2=$dx n1=$n1 n2=$n2 n3=1 \
verbose=1 iter=2 slowness... | Shell |
#! /bin/sh
rm *.eps data* tfile* vfile* *.data jpfile*
| Shell |
#! /bin/sh
#
#------------Geometry Assignment & Sort-----------------------------------
#
input=mig_950.data
suwind<$input key=offset min=950 max=950 |
suwind tmax=4.0 |suwind key=tracr min=101 max=301 |
supsimage legend=1 label1="Depth (km)" label2="Midpoint (km)" d1=0.005 \
f2=2.5 d2=0.025 perc=99. \
title="Common... | Shell |
#! /bin/sh
# shell for Kirchhoff migration from topography.
#set -v
set -x
offset=950
input=../Make_Data/shot_TOPO.data
output=mig_$offset.data
suwind <$input key=offset min=$offset max=$offset > input.tmp
sumigtopo2d par=kzmigtopo.par infile=input.tmp \
off0=$offset outfile=$output
... | Shell |
#! /bin/sh
# shell for generating traveltimes by ray tracing
set -v
rayt2d <vfile_smooth par=rayvxz.par
exit
| Shell |
#! /bin/sh
# shell for uniformly sampling velocity from a layered model
set -v
nz=61 dz=50 fz=-500.0 labelz="Depth (m)"
nx=201 dx=50 fx=0 labelx="Distance (m)"
ninf=1 npmax=2001
unif2 <input_mig >vfile_mig method=mono ninf=$ninf npmax=$npmax \
nz=$nz dz=$dz fz=$fz nx=$nx dx=$dx fx=$fx \
v00=2000,2000 \
x0=0.,0. ... | Shell |
#! /bin/sh
#
#------------Geometry Assignment & Sort-----------------------------------
#
input=mig_950.data
suwind<$input key=offset min=950 max=950 |
suwind tmax=4.0 |suwind key=tracr min=101 max=301 |
supswigb label1="Depth (km)" label2="Midpoint (km)" d1=0.005 \
f2=2.5 d2=0.025 wbox=7 hbox=5 perc=99. \
title="Co... | Shell |
#! /bin/sh
# clean the directory
rm -f demo.su demo.su.ps demo*traces demo*plot demo*shot
exit 0
| Shell |
#! /bin/sh
# Run CSHOT with CWP X Graphics
# Zero-offset data corresponding to a model
# with topography, base of weathering and
# a reflector at depth
demo=14
x1beg=-1000 x1end=4000 x2beg=0 x2end=18000
cp param1.1 param1
cshot1 |
cshotplot >demo${demo}plot outpar=demo${demo}par
xgraph <demo${demo}plot par=demo${d... | Shell |
#! /bin/sh
# Run CSHOT with CWP X Graphics
# Zero-offset data corresponding to a model
# with topography, base of weathering and
# a reflector at depth
demo=14
x1beg=-1000 x1end=4000 x2beg=0 x2end=18000
cp param1.1 param1
cshot1 |
cshotplot >demo${demo}plot outpar=demo${demo}par
xgraph <demo${demo}plot par=demo${d... | Shell |
#! /bin/sh
# clean the directory
rm -f *.b
rm -f demo.su*
rm -f model.ps
rm -f demo*
cd MakeData ; Clean.sh
cd ..
cd VelocityFiles ; Clean.sh
exit 0
| Shell |
#! /bin/sh
# use zero-velocity layer and wave-equation datuming
# to datum data from topography to a horizontal surface
#static shift data from topography to a horizontal surface above
###################################################################
sustatic < demo.su > demo.su_zstat hdrs=2 sign=-1 sou_file=zsou.b ... | Shell |
#! /bin/sh
# Display data before and after processing
supsimage < demo.su f2=50 d2=50 label1="Time (s)" \
label2="Surface Location (ft)" title="Raw Data" > demo.su.ps
supsimage < demo.su_zstat_dat f2=50 d2=50 label1="Time (s)" \
label2="Surface Location (ft)" \
title="After Wave-Equation Datuming" > demo.su_zstat_dat... | Shell |
#! /bin/sh
# Display data before and after processing
suximage < demo.su f2=50 d2=50 label1="Time (s)" \
xbox=20 ybox=20 wbox=400 hbox=300 \
label2="Surface Location (ft)" title="Raw Data" &
suximage < demo.su_zstat_dat f2=50 d2=50 label1="Time (s)" \
xbox=450 ybox=20 wbox=400 hbox=300 \
label2="Surface Location (ft)... | Shell |
#! /bin/sh
# 1) Zero-velocity layer statics are computed
# 2) Thin-lens and diffraction term velocity
# fields are created
make
modelstat
a2b < zsou.dat n1=1 > zsou.b
a2b < zrec.dat n1=1 > zrec.b
a2b < vfp1.dat n1=1 > vfp1.b
a2b < vfp2.dat n1=1 > vfp2.b
cp *.b ../
rm -f *.dat
exit 0
| Shell |
#! /bin/sh
# clean the directory
make clean
rm -f *.b
exit 0
| Shell |
#! /bin/sh
# Set messages on
set -x
# Demo for suascii
#-------------------------------------------------
# Create a data set with suplane:
# 32 traces
# tracl=1-32 tracr=1-32 offset=400 ns=64 dt=4000
# The three dipping events cross on tracl=16
# Name temp data set
temp=tempdata.bin
#-----------------------... | Shell |
#! /bin/sh
# Clean created data files
rm -f binary_cdp temp* output*
exit 0
| 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)
DEMODIR=$CWPROOT/src/demos/Filtering
# Take care of subdirectories
for i in `ls`
do
if
[ -d $i ]
then
cd $i
if
[ -f Clean.sh ]
then
echo $i
Clean.sh
fi
rm -f *~ \#*\... | Shell |
#! /bin/sh
# Clean created data files
rm -f binary_cdp temp*
exit 0
| Shell |
#! /bin/sh
# Set messages on
set -x
# Demo for sudumptrace
#-------------------------------------------------
# Create a data set with suplane:
# 32 traces
# tracl=1-32 tracr=1-32 offset=400 ns=64 dt=4000
# The three dipping events cross on tracl=16
# Name temp data set
temp=tempdata.bin
#-------------------... | Shell |
#! /bin/sh
# Clean created data files
rm -f binary_cdp temp*
exit 0
| Shell |
#! /bin/sh
# Set messages on
##set -x
# Demo for sukeycount
#-------------------------------------------------
# Create a data set with suplane:
# 32 traces
# tracl=1-32 tracr=1-32 offset=400 ns=64 dt=4000
# The three dipping events cross on tracl=16
# Name temp data set 1
temp1=temp1.bin
# Name temp data se... | Shell |
#! /bin/sh
# Set messages on
##set -x
# Demo for sukeycount
#-------------------------------------------------
# Create a data set with suplane:
# 32 traces
# tracl=1-32 tracr=1-32 offset=400 ns=64 dt=4000
# The three dipping events cross on tracl=16
# Name temp data set 1
temp1=temp1.bin
# Name temp data se... | Shell |
#! /bin/sh
# Clean created data files
rm -f binary_cdp temp*
exit 0
| Shell |
#! /bin/sh
# Making su data for big Endian machines
if
[ ! -f oz25.F -o ! -f oz25.H ]
then
echo "See the README file for accessing the required data" 1>&2; exit 1
fi
# Add header and set fields
# Set header fields for future processing convenience.
# Notes:
# n1 in graphics programs corresponds to SEG-Y field ns
# ... | Shell |
#! /bin/sh
# Clean created data files
rm -f data.su *.eps oz*
exit
| Shell |
#! /bin/sh
# Investigate data with sugabor to ascertain a time-varying filter
# for sutvband
WIDTH=600
HEIGHT=450
WIDTHOFF1=0
WIDTHOFF2=640
HEIGHTOFF1=50
HEIGHTOFF2=530
# Spectrum of raw data
suspecfx <data.su |
suxmovie \
title="FX spectrum" \
windowtitle="FX"\
label1="Freq (Hz)" label2="Offset (km)" \
-geometry... | Shell |
#! /bin/sh
# Investigate data with sugabor to ascertain a time-varying filter
# for sutvband
# Takes too long to be practical
demo=gabor
# Spectrum of raw data
suspecfx <data.su |
supsimage \
title="FX spectrum"\
label1="Freq (Hz)" label2="Offset (km)" >${demo}.1.eps
perc=90
suspecfx <data.su |
supsimage perc=$pe... | Shell |
#! /bin/sh
# Making su data for little Endian machines
if
[ ! -f oz25.F -o ! -f oz25.H ]
then
echo "See the README file for accessing the required data" 1>&2; exit 1
fi
# Since we are on a "Little Endian" machine (PC), we must swap bytes
# Add header and set header fields for future processing convenience.
# Remar... | Shell |
#! /bin/sh
# Best results starting with suspecfx and using some indicated sufilters
demo=filt2
perc=90 # accept value in book
tpow=3.2 # accept value in oz25.H
f=0,10,15,20
amps=0.,0.,1.,1.
sufilter <data.su f=$f amps=$amps |
sugain tpow=$tpow |
supsimage perc=$perc \
title="f=$f + gain"\
label1="Time (sec)" la... | Shell |
#! /bin/sh
# Try some display gains on the muted, filtered data
WIDTH=600
HEIGHT=450
WIDTHOFF1=0
WIDTHOFF2=640
HEIGHTOFF1=50
HEIGHTOFF2=530
perc=90
f=0,15,25,30
amps=0.,0.,1.,1.
xmute=1,49,97
tmute=1.2,.2,1.2
ntaper=5
tpow=1
sufilter <data.su f=$f amps=$amps |
sumute key=tracl xmute=$xmute tmute=$tmute ntaper=$ntap... | Shell |
#! /bin/sh
# Use sumute to eliminate direct arrivals on the filtered data
WIDTH=600
HEIGHT=450
WIDTHOFF1=0
WIDTHOFF2=640
HEIGHTOFF1=50
HEIGHTOFF2=530
perc=90
tpow=2
f=0,15,25,30
amps=0.,0.,1.,1.
sufilter <data.su f=$f amps=$amps |
sugain tpow=$tpow |
suxmovie perc=$perc \
title="f=$f + gain" windowtitle="f=$f" \
... | Shell |
#! /bin/sh
# Making su data for big Endian machines
if
[ ! -f oz25.F -o ! -f oz25.H ]
then
echo "See the README file for accessing the required data" 1>&2; exit 1
fi
# Add header and set header fields for future processing convenience.
# Notes:
# n1 in graphics programs corresponds to SEG-Y field ns
# d1 in graphic... | Shell |
#! /bin/sh
# Clean created data files
rm -f data*.su *.eps oz*
exit
| Shell |
#! /bin/sh
demo=look
# Look at raw data using par file to supply all parameters
# This would work even we did not use sushw in MakeDataBig/Little
supsimage<data.su par=oz25.H >${demo}.1.eps
# Repeat using SU headers and adding the suggested tpow in oz25.H
tpow=3.191650
sugain <data.su tpow=$tpow |
supsimage \
title=... | Shell |
#! /bin/sh
# Try some display gains on the muted, filtered data
demo=gain
perc=90
f=0,15,25,30
amps=0.,0.,1.,1.
xmute=1,49,97
tmute=1.2,.2,1.2
ntaper=5
tpow=1
sufilter <data.su f=$f amps=$amps |
sumute key=tracl xmute=$xmute tmute=$tmute ntaper=$ntaper |
sugain tpow=$tpow |
supsimage perc=$perc \
title="filter, m... | Shell |
#! /bin/sh
WIDTH=600
HEIGHT=450
WIDTHOFF1=0
WIDTHOFF2=640
HEIGHTOFF1=50
HEIGHTOFF2=530
# Look at raw data using par file to supply all parameters
# This would work even we did not use sushw in MakeDataBig/Little
suxmovie<data.su par=oz25.H windowtitle="Raw Data"\
-geometry ${WIDTH}x${HEIGHT}+${WIDTHOFF1}+${HEIGHTOFF1... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.