from rsf.proj import *
Flow('sxy_st0 gxy_st0 sxyamp_st0 gxyamp_st0',
'../fetch/npr3_field.rsf ../fetch/npr3_field_hdr.rsf',
'''
sftahscscale
input=$SOURCE
sxy=${TARGETS[0]} gxy=${TARGETS[1]}
sxyamp=${TARGETS[2]} gxyamp=${TARGETS[3]}
starttime=1.5
verbose=2
''',stdout=0,stdin=0)
Flow(['scscale.rsf','scscale_hdr.rsf',
'sxy.rsf' ,'gxy.rsf',
'sxyamp_st1500.rsf','gxyamp_st1500.rsf'],
['../fetch/npr3_field.rsf','../fetch/npr3_field_hdr.rsf'],
'''
sftahscscale
input=$SOURCE
sxy=${TARGETS[2]} gxy=${TARGETS[3]}
sxyamp=${TARGETS[4]} gxyamp=${TARGETS[5]}
starttime=1.5
verbose=2
| sftahwrite
verbose=1
label2="tracf" o2=1 n2=1062 d2=1
label3="fldr" o3=14 n3=850 d3=1
output=$TARGET
''',stdout=0,stdin=0)
Result('sxy',
'scale dscale=1e-6 | graph symbol="+" title="Shot coordinates" plotcol=4 label1=x label2=y unit1= unit2=')
Result('gxy',
'scale dscale=1e-6 | graph symbol="+" title="Receiver coordinates" plotcol=5 label1=x label2=y unit1= unit2=')
Flow('sx','sxyamp_st0','window n1=1 f1=0')
Flow('sy','sxyamp_st0','window n1=1 f1=1')
Flow('sxsycoord',['sx','sy'],'cmplx ${SOURCES[1]}')
Result('sxsycoord','scale dscale=1e-6 | graph symbol="+" title="Shot (x,y)" plotcol=5 label1=x label2=y unit1= unit2=')
Flow('gx','gxyamp_st0','window n1=1 f1=0')
Flow('gy','gxyamp_st0','window n1=1 f1=1')
Flow('gxgycoord',['gx','gy'],'cmplx ${SOURCES[1]}')
Result('gxgycoord','scale dscale=1e-6 | graph symbol="+" title="group (x,y)" plotcol=5 label1=x label2=y unit1= unit2=')
Flow(['scscale_subset.rsf','scscale_subset_hdr.rsf'],
['scscale.rsf','scscale_hdr.rsf'],
'''
sftahsort
input=$SOURCE
sort="fldr:14,23 tracf:1,1063"
verbose=1
| sftahwrite
verbose=1
label2="tracf" o2=1 n2=1062 d2=1
label3="fldr" o3=14 n3=10 d3=1
output=$TARGET
''',stdout=0,stdin=0)
Plot('scscale_subset','scscale_subset',
'sfwindow max1=2. | grey title="field with scscale"',view=1)
Flow(['npr3_field_subset.rsf','npr3_field_subset_hdr.rsf'],
['../fetch/npr3_field.rsf','../fetch/npr3_field_hdr.rsf'],
'''
sftahsort
input=$SOURCE
sort="fldr:14,23 tracf:1,1063"
verbose=1
| sftahwrite
verbose=1
label2="tracf" o2=1 n2=1062 d2=1
label3="fldr" o3=14 n3=10 d3=1
output=$TARGET
''',stdout=0,stdin=0)
Plot('npr3_field_subset','npr3_field_subset',
'sfwindow max1=2. | grey title="field"',view=1)
End() |