sconstruct

来自「国外免费地震资料处理软件包」· 代码 · 共 38 行

TXT
38
字号
from rsfproj import *# Fetch Files from repositoryFetch("int_depth_vp.sgy","pluto")Fetch("P15VPint_25f_padded.SEGY","pluto")# Convert Files to RSFFlow('velocityProfileStd','int_depth_vp.sgy', '''segyread tape=$SOURCE |        put  d2=.025 label1=Depth o2=-34.875         label2=Position unit1=ft*1000         unit2=ft*1000''',stdin=0)Flow('velocityProfileMetric','int_depth_vp.sgy', '''segyread tape=$SOURCE |        put d1=.00760 d2=.00760 o2=-10.629        label1=Depth label2=Position         unit1=km unit2=km | scale rscale=.0003048''')    Flow('velocityProfilePadded','P15VPint_25f_padded.SEGY', '''segyread tape=$SOURCE |        put  d1=.0076 d2=.00760 o2=-10.629 label1=Depth        label2=Position unit1=km unit2=km |        scale rscale=.0003048''')# Plotting Sectionmins=[0,0,-10.5]maxs=['105','32','42.5']counter=0for item in ['Std','Metric']:    Result('velocityProfile' + item,'''window $SOURCE | grey scalebar=y         color=I allpos=y gainpanel=a title=P-Wave\ Velocity\ Profile        max2=%s min2=0 screenratio=.28125 screenht=2 barlabel=\(km/s\)        labelsz=4 title= ''' % maxs[counter])    counter=counter+1Result('velocityProfilePadded','''window $SOURCE | grey scalebar=y         color=I allpos=y gainpanel=a title=P-Wave\ Velocity\ Profile        screenratio=.28 125 screenht=2 labelsz=4 title= barlabel=\(km/s\)       ''')End()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?