Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSource
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Willem Thorbecke
OpenSource
Commits
c9320a5b
Commit
c9320a5b
authored
8 years ago
by
Jan Thorbecke
Browse files
Options
Downloads
Patches
Plain Diff
added files and NULL init's
parent
229af3f8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
marchenko/demo/oneD/epsIterwithLabels.scr
+76
-0
76 additions, 0 deletions
marchenko/demo/oneD/epsIterwithLabels.scr
marchenko/demo/oneD/figAppendix.scr
+45
-0
45 additions, 0 deletions
marchenko/demo/oneD/figAppendix.scr
utils/ftr1d.c
+3
-3
3 additions, 3 deletions
utils/ftr1d.c
with
124 additions
and
3 deletions
marchenko/demo/oneD/epsIterwithLabels.scr
0 → 100755
+
76
−
0
View file @
c9320a5b
#!/bin/bash
export
PATH
=
$HOME
/src/OpenSource/bin/:
$PATH
:
#mute to get pslinepos.asci files used in plotting only
fmute
file_shot
=
iniFocus_rp.su
file_out
=
nep.su
above
=
0
shift
=
8
verbose
=
1
check
=
1
hw
=
4
#set same clip factor for iteration updates
file
=
iter_001.su
sumax <
$file
mode
=
abs
outpar
=
nep
clipiter
=
`
cat
nep |
awk
'{print $1/8}'
`
#set same clip factor for Green;s function updates
file
=
pgreen_004.su
file_base
=
${
file
%.su
}
sumax <
$file
mode
=
abs
outpar
=
nep
clipgreen
=
`
cat
nep |
awk
'{print $1/4}'
`
#iterations
for
((
iter
=
1
;
iter<
=
4
;
iter+
=
1
))
do
piter
=
$(
printf
%03d
$iter
)
echo
$piter
file
=
iter_
$piter
.su
#ns=`surange < iter_001.su | grep ns | awk '{print $2}'`
#dtrcv=`surange < iter_001.su | grep dt | awk '{print $2/1000000.0}'`
#shift=$(echo "scale=4; ($dtrcv*($ns/2.0-1))" | bc -l)
#basop choice=shift shift=$shift file_in=$file | \
file_base
=
${
file
%.su
}
clipref
=
$clipiter
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0 <
$file
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
x1beg
=
-1
.504
x1end
=
1.5
d1num
=
0.4
\
curve
=
pslinepos.asci,pslineneg.asci
npair
=
901,901
curvewidth
=
2,2
curvecolor
=
black,black
curvedash
=
3,3
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
clip
=
$clipref
>
${
file_base
}
_labels.eps
file
=
f1min_
$piter
.su
file_base
=
${
file
%.su
}
sumax <
$file
mode
=
abs
outpar
=
nep
clipref
=
`
cat
nep |
awk
'{print $1/5}'
`
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0 <
$file
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
x1beg
=
-1
.504
x1end
=
1.5
d1num
=
0.4
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
clip
=
$clipref
>
${
file_base
}
_labels.eps
file
=
f1plus_
$piter
.su
file_base
=
${
file
%.su
}
sumax <
$file
mode
=
abs
outpar
=
nep
clipref
=
`
cat
nep |
awk
'{print $1/5}'
`
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0 <
$file
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
x1beg
=
-1
.504
x1end
=
1.5
d1num
=
0.4
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
clip
=
$clipref
>
${
file_base
}
_labels.eps
file
=
pgreen_
$piter
.su
file_base
=
${
file
%.su
}
sumax <
$file
mode
=
abs
outpar
=
nep
clipref
=
`
cat
nep |
awk
'{print $1/4}'
`
suwind
key
=
gx
min
=
-2250000
max
=
2250000 <
$file
|
\
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
f1
=
0.0
x1beg
=
0
x1end
=
2.004
d1num
=
0.4
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
clip
=
$clipgreen
>
${
file_base
}
_labels.eps
done
#special treatment of f1+ zero-iteration: which is zero, to make a nice gray plot (and not black)
file
=
f1plus_001.su
file_base
=
${
file
%.su
}
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0 <
$file
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
x1beg
=
-1
.504
x1end
=
1.5
d1num
=
0.4
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
bclip
=
1
wclip
=
-1
>
${
file_base
}
_labels.eps
This diff is collapsed.
Click to expand it.
marchenko/demo/oneD/figAppendix.scr
0 → 100755
+
45
−
0
View file @
c9320a5b
#!/bin/bash
file
=
iter_002.su
file_base
=
${
file
%.su
}
ns
=
`
surange <
$file
|
grep
ns |
awk
'{print $2}'
`
dtrcv
=
`
surange <
$file
|
grep
dt |
awk
'{print $2/1000000.0}'
`
shift
=
$(
echo
"scale=4; (
$dtrcv
*(
$ns
/2.0-1))"
| bc
-l
)
suzero <
$file
itmax
=
$ns
| suaddnoise | sushw
key
=
f1
a
=
0
>
noise.su
file_base
=
noise
sumax <
${
file_base
}
.su
mode
=
abs
outpar
=
nep
clipiter
=
`
cat
nep |
awk
'{print $1/6}'
`
clipref
=
$clipiter
#basop choice=shift shift=$shift file_in=$file file_out=${file_base}_t0.su
for
above
in
0 1
-1
2 4
do
fmute
file_mute
=
iniFocus_rp.su
file_shot
=
${
file_base
}
.su
file_out
=
nep.su
above
=
${
above
}
shift
=
8
verbose
=
1
check
=
1
hw
=
4
basop
choice
=
shift shift
=
-
$shift
file_in
=
nep.su
file_out
=
nep_t0.su
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0 < nep.su
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
x1beg
=
0
d1num
=
0.5
\
curve
=
pslinepos.asci,pslineneg.asci
npair
=
901,901
curvewidth
=
2,2
curvecolor
=
black,black
curvedash
=
3,3
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
clip
=
$clipref
>
${
file_base
}
_above
${
above
}
.eps
done
for
shift
in
0 20
-20
do
fmute
file_mute
=
iniFocus_rp.su
file_shot
=
${
file_base
}
.su
file_out
=
nep.su
above
=
${
above
}
shift
=
$shift
verbose
=
1
check
=
1
hw
=
4
mv
pslinepos.asci pslinepos
${
shift
}
.asci
done
suzero <
$file
itmax
=
$ns
| sushw
key
=
f1
a
=
0
>
zero.su
sumax < iniFocus_rp.su
mode
=
abs
outpar
=
nep
clipiter
=
`
cat
nep |
awk
'{print $1/6}'
`
clipref
=
$clipiter
supsimage
hbox
=
6
wbox
=
4
labelsize
=
10
linewidth
=
0.0 < iniFocus_rp.su
\
label1
=
"time (s)"
label2
=
"lateral distance (m)"
\
n1tic
=
2
d2
=
5
x1beg
=
0
d1num
=
0.5
\
curve
=
pslinepos0.asci,pslinepos20.asci,pslinepos-20.asci
npair
=
901,901,901
\
curvewidth
=
1,1,1
curvecolor
=
white,black,black
curvedash
=
3,3,3
\
f2
=
-2250
f2num
=
-2000
d2num
=
1000
clip
=
$clipref
>
iniFocus_shifts.eps
This diff is collapsed.
Click to expand it.
utils/ftr1d.c
+
3
−
3
View file @
c9320a5b
...
@@ -65,10 +65,10 @@ int main(int argc, char *argv[])
...
@@ -65,10 +65,10 @@ int main(int argc, char *argv[])
int
optn
,
choice
,
sign
,
ntmax
,
nxmax
,
verbose
,
first
,
ngath
,
ntraces
;
int
optn
,
choice
,
sign
,
ntmax
,
nxmax
,
verbose
,
first
,
ngath
,
ntraces
;
int
nfreq
,
error
,
n1
,
n2
,
ret
,
n1_org
,
nf_org
,
i
,
j
;
int
nfreq
,
error
,
n1
,
n2
,
ret
,
n1_org
,
nf_org
,
i
,
j
;
size_t
size
;
size_t
size
;
float
*
rdata
,
*
datin
,
*
datout
,
d1
,
d2
,
f1
,
f2
,
scale
;
float
*
rdata
=
NULL
,
*
datin
=
NULL
,
*
datout
=
NULL
,
d1
,
d2
,
f1
,
f2
,
scale
;
float
scl
,
xmin
,
xmax
;
float
scl
,
xmin
,
xmax
;
double
t0
,
t1
,
t2
;
double
t0
,
t1
,
t2
;
complex
*
cdata
;
complex
*
cdata
=
NULL
;
segy
*
hdrs
;
segy
*
hdrs
;
char
*
file_in
,
*
file_out
;
char
*
file_in
,
*
file_out
;
...
@@ -378,7 +378,7 @@ int main(int argc, char *argv[])
...
@@ -378,7 +378,7 @@ int main(int argc, char *argv[])
free
(
hdrs
);
free
(
hdrs
);
free
(
datin
);
free
(
datin
);
if
(
datout
!=
NULL
)
free
(
datout
);
if
(
datout
!=
NULL
)
free
(
datout
);
if
(
rdata
!=
NULL
)
free
(
rdata
);
if
(
rdata
!=
NULL
)
free
(
rdata
);
if
(
cdata
!=
NULL
)
free
(
cdata
);
if
(
cdata
!=
NULL
)
free
(
cdata
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment