Skip to content

Commit e3878cf

Browse files
authored
real and synthabma folders (#307)
* added SConstruct with real data example * added SConstruct with Ray Abma's synthetic data example
1 parent 5a7fab6 commit e3878cf

File tree

2 files changed

+124
-0
lines changed

2 files changed

+124
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
from rsf.proj import *
2+
3+
# Fetch & plot dataset
4+
Fetch('elf-stk2.rsf','masha')
5+
Flow('elf','elf-stk2','dd form=native | put unit1=s')
6+
Result('elf','grey')
7+
8+
# Decimate
9+
Flow('decimated','elf','window j2=4 | put d2=53.3333')
10+
Result('decimated','grey')
11+
12+
#Result('original_n_decimated',['elf','decimated'],'SideBySideAniso')
13+
14+
# Zoom-in
15+
Flow('original_w','elf','window max1=1.5 n2=600 | costaper nw1=40')
16+
Flow('decimated_w','decimated','window max1=1.5 n2=150 | costaper nw1=40')
17+
Result('original_w','grey title="Original data"')
18+
Result('decimated_w','grey title="Decimated data"')
19+
20+
#Result('original_n_decimated_w',['elf_w','decimated_w'],'SideBySideAniso')
21+
22+
# T-X interpolation
23+
Flow(['pad_w','mask_w'],'decimated_w','lpad jump=4 mask=${TARGETS[1]}')
24+
Flow(['pef_w','lag_w'],'decimated_w','lpef lag=${TARGETS[1]} a=17,5 jump=4')
25+
Flow('interpolated_w',['pad_w','mask_w','pef_w'],
26+
'miss padin=4 filt=${SOURCES[2]} mask=${SOURCES[1]} prec=n')
27+
Result('interpolated_w','grey')
28+
29+
Flow('pef_aw','pad_w','apef a=15,4 jump=4 rect1=20 rect2=5 niter=200 verb=y')
30+
Flow('interpolated_aw',['pad_w','pef_aw','mask_w'],'miss4 filt=${SOURCES[1]} mask=${SOURCES[2]} verb=y')
31+
Result('interpolated_aw','grey')
32+
33+
## Interpolation error
34+
35+
# F-X interpolation
36+
37+
## Interpolation error
38+
39+
End()
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
from rsf.proj import *
2+
from rsf.recipes.beg import server as private
3+
4+
###########################################################################
5+
6+
for dat in ('curve','linear','random','marm'):
7+
input = 'input.%s.segy' % dat
8+
Fetch(input,'ray',private)
9+
Flow([dat,'./A'+dat,'./B'+dat],input,
10+
'''
11+
segyread tape=$SOURCE read=d hfile=${TARGETS[1]} bfile=${TARGETS[2]}
12+
''',stdin=0)
13+
14+
Flow('linear2','linear','window min1=0.5 max1=2.7 | bandpass fhi=60')
15+
Plot('linear','linear2',
16+
'''
17+
grey yreverse=y transp=y poly=y label2=Position
18+
title=Input
19+
''')
20+
Plot('jlinear','linear2',
21+
'''
22+
window n2=11 f2=23 n1=150 min1=1.35 |
23+
put d1=1 o1=675 label1=Sample unit1= |
24+
wiggle yreverse=y transp=y poly=y label2=Position wherexlabel=t
25+
title=Input wheretitle=b clip=0.0451806 labelsz=5. titlesz=7
26+
labelfat=2 font=2 titlefat=2 screenratio=1.2
27+
''')
28+
29+
# nonstationary PWD
30+
Flow('lindip','linear2','twodip2 order=3 nj1=4 nj2=4 eps=10 gauss=n')
31+
Flow('lindip2','lindip',
32+
'transp | spline n1=240 o1=0 d1=0.25 | transp')
33+
34+
Flow('lin4 linones4','linear2','lpad jump=4 mask=${TARGETS[1]}')
35+
Flow('lindeal','lin4 lindip2 linones4',
36+
'planemis2 dip=${SOURCES[1]} mask=${SOURCES[2]} order=3 verb=y')
37+
Plot('lindeal','grey yreverse=y transp=y poly=y title=Interpolated')
38+
39+
Result('linear-deal','linear lindeal','SideBySideAniso')
40+
41+
# Stationary T-X PEFs
42+
Flow('lpef llag','linear2','lpef lag=${TARGETS[1]} a=10,4 jump=4')
43+
Flow('lscov','lpad lmask lpef',
44+
'miss padin=4 filt=${SOURCES[2]} mask=${SOURCES[1]} prec=n')
45+
Plot('lscov',
46+
'grey yreverse=y transp=y poly=y title="Stationary PEF"')
47+
48+
Result('linear-scomp','linear lscov','SideBySideAniso')
49+
50+
# Nonstationary T-X PEFs
51+
Flow('lpad lmask','linear2','lpad jump=2 mask=${TARGETS[1]}')
52+
Flow('lapef','lpad','apef a=15,4 jump=2 rect1=20 rect2=5 niter=200 verb=y')
53+
Flow('lacov','lpad lapef lmask',
54+
'miss4 filt=${SOURCES[1]} mask=${SOURCES[2]} verb=y')
55+
Plot('lacov',
56+
'''
57+
grey yreverse=y transp=y poly=y label2=Position
58+
title="Adaptive PEF"
59+
''')
60+
61+
Plot('jlacov','lacov',
62+
'''
63+
window n2=22 f2=46 n1=150 min1=1.35 |
64+
put d1=1 o1=675 label1=Sample unit1= |
65+
wiggle yreverse=y transp=y poly=y label2=Position wherexlabel=t
66+
title="Adaptive PEF" wheretitle=b clip=0.0225903 labelsz=5. titlesz=7
67+
labelfat=2 font=2 titlefat=2 screenratio=1.2
68+
''')
69+
70+
Result('linear-comp','linear lacov','SideBySideAniso')
71+
72+
# Stationary F-X PEFs
73+
Flow('lfx','lpad',
74+
'''
75+
spitz norm=n verb=y
76+
''')
77+
Plot('lfx',
78+
'''
79+
grey yreverse=y transp=y poly=y label2=Position
80+
title="Adaptive PEF"
81+
''')
82+
83+
Result('linear-fxcomp','linear lfx','SideBySideAniso')
84+
85+
End()

0 commit comments

Comments
 (0)