📄 inversion
字号:
#! /bin/sh# Invert the data created by CSHOTrecordfile=recordecho "Run time information being stored in file: $recordfile">$recordfile################cd inversion.dir # where inversion files are################/bin/rm -f getcosinesecho "Please standby. The inversion will take about 5 min."make(### Preprocessing/bin/rm -f DATA1cz1in <data1in/bin/rm -f PTRACEScz1### Inversioncxzcs) > $recordfile 2>&1sleep 20/bin/mv -f $recordfile ..echo "run time info now in file: $recordfile"### Strip the Fortran bytesftnstrip <reflect >reflect.strip; mv -f reflect.strip reflectftnstrip <reflectcos >reflectcos.strip; mv -f reflectcos.strip reflectcos### Plot the sectionsxmovie <reflect n1=301 n2=50 d1=25 d2=80 f2=3000 perc=99 style=seismic \ -geometry 560x430+50+570 \ title=" Inversion (R)" \ label1=" Depth(ft)" label2=" Midpoint(ft)" &xmovie <reflectcos n1=301 n2=50 d1=25 d2=80 f2=3000 perc=99 style=seismic \ -geometry 560x430+650+570 \ title=" Inversion (R * cos)" \ label1=" Depth(ft)" label2=" Midpoint(ft)" &### Extract the cosines from known locations on the sectionssubset <reflectcos n1=301 if1s=60 n1s=1 n2=50 if2s=0 n2s=50 >a1subset <reflect n1=301 if1s=60 n1s=1 n2=50 if2s=0 n2s=50 >b1subset <reflectcos n1=301 if1s=100 n1s=1 n2=50 if2s=0 n2s=50 >a2subset <reflect n1=301 if1s=100 n1s=1 n2=50 if2s=0 n2s=50 >b2 farith op=div <a1 in2=b1>cos1farith op=div <a2 in2=b2>cos2# Run fortran program to compute the exact cosine of angle# produces files out1, out2 for the 2 reflectorsrm out1 out2getcosinesftnstrip <out1 >out1.strip; /bin/mv -f out1.strip out1ftnstrip <out2 >out2.strip; /bin/mv -f out2.strip out2# Plot computed against exact cosinescat cos1 out1 |xgraph nplot=2 n=50,50 d1=80,80 f1=3000 style=normal \ -geometry 560x430+50+85 \ x2beg=0. x2end=1.1 \ linecolor=2,4 linewidth=3 \ title="First interface (blue=exact)" \ label1="midpoint(ft)" label2="Cosine of angle" &cat cos2 out2 |xgraph nplot=2 n=50,50 d1=80,80 f1=3000 style=normal \ -geometry 560x430+650+85 \ x2beg=0. x2end=1.1 \ linecolor=2,4 linewidth=3 \ title="Second interface (blue=exact)" \ label1="midpoint(ft)" label2="Cosine of angle" & exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -