raydens_latsec.gmt

来自「这是一个TOMO TO GMT的源码」· GMT 代码 · 共 133 行

GMT
133
字号
#!/bin/csh## script to plot ray-density tensor distribution# in depth sections along constant latitude##  3 sections on 1 page## using output files from tomo2gmt# for classified plotting##					(c) stephan@tomo.ig.erdw.ethz.ch# !! be sure to set paths to your directory !!set wpath=/ek1/tomoled/tomo2gmt/PACKAGEset inpath=$wpath/example_raydensset psfile = $wpath/rayden_latsec.ps# set colors for each classset c1=255/10/10set c2=235/185/30set c3=10/10/255set c4=80/200/0# first sectionset latsec=04set lat=23.50set infile=$inpath/VP/latsec.rayden.$latsec.xyz# create qual. files foreach class and total ray length classnawk -f $wpath/GMT/splitrayden.awk $infile psbasemap -Jx5/-0.05 -R-71.2730/-69.2166/-2.5/100 -Baf0.5:"longitude [degrees]":/a10f5:"depth [km]":WeNs -K -V -P -X5 -Y4 >$psfile# mark block boundariespsxy $inpath/VP/latsec_invgrd.xz -Jx -R -W0.5top -M -O -K -V -P >> $psfile# work on class1 (circles)if (-f qual1_1.out) psxy qual1_1.out -Jx -R -G$c1 -Sc -O -K -V -P >>$psfile# on class1if (-f qual1_1.out) psxy qual1.out -Jx -R -W20/$c1 -M -O -K -V -P >>$psfile# on class2 (circles)if (-f qual2_1.out) psxy qual2-1.out -Jx -R -G$c2 -Sc -O -K -V -P >>$psfile# on class2 psxy qual2.out -Jx -R -W20/$c2 -M -O -K -V -P >> $psfile# on class3 psxy qual3.out -Jx -R -W20/$c3 -M -O -K -V -P >> $psfile# on class3 psxy qual4.out -Jx -R -W20/$c4 -M -O -K -V -P >> $psfilepstext -Jx -R -W255 -O -K -P -V <<END >>$psfile-71.10 95 10 0 1 1 RAY DENSITY TENSOR along Latitude $lat SEND# second sectionset latsec=05set lat=23.25set infile=$inpath/VP/latsec.rayden.$latsec.xyz# create qual. files foreach class and total ray length classnawk -f $wpath/GMT/splitrayden.awk $infile # mark block boundariespsxy $inpath/VP/latsec_invgrd.xz -Jx -R -Baf0.5:"longitude [degrees]":/a10f5:"depth [km]":WeNs -W0.5top -M -O -K -V -P -Y8 >> $psfile# work on class1 (circles)if (-f qual1_1.out) psxy qual1_1.out -Jx -R -G$c1 -Sc -O -K -V -P >>$psfile# on class1if (-f qual1_1.out) psxy qual1.out -Jx -R -W20/$c1 -M -O -K -V -P >>$psfile# on class2 (circles)if (-f qual2_1.out) psxy qual2-1.out -Jx -R -G$c2 -Sc -O -K -V -P >>$psfile# on class2 psxy qual2.out -Jx -R -W20/$c2 -M -O -K -V -P >> $psfile# on class3 psxy qual3.out -Jx -R -W20/$c3 -M -O -K -V -P >> $psfile# on class3 psxy qual4.out -Jx -R -W20/$c4 -M -O -K -V -P >> $psfilepstext -Jx -R -W255 -O -K -P -V <<END >>$psfile-71.10 95 10 0 1 1 RAY DENSITY TENSOR along Latitude $lat SEND# third sectionset latsec=06set lat=23.00set infile=$inpath/VP/latsec.rayden.$latsec.xyz# create qual. files foreach class and total ray length classnawk -f $wpath/GMT/splitrayden.awk $infile # mark block boundariespsxy $inpath/VP/latsec_invgrd.xz -Jx -R -Baf0.5:"longitude [degrees]":/a10f5:"depth [km]":WeNs -W0.5top -M -O -K -V -P -Y8 >> $psfile# work on class1 (circles)if (-f qual1_1.out) psxy qual1_1.out -Jx -R -G$c1 -Sc -O -K -V -P >>$psfile# on class1if (-f qual1_1.out) psxy qual1.out -Jx -R -W20/$c1 -M -O -K -V -P >>$psfile# on class2 (circles)if (-f qual2_1.out) psxy qual2-1.out -Jx -R -G$c2 -Sc -O -K -V -P >>$psfile# on class2 psxy qual2.out -Jx -R -W20/$c2 -M -O -K -V -P >> $psfile# on class3 psxy qual3.out -Jx -R -W20/$c3 -M -O -K -V -P >> $psfile# on class3 psxy qual4.out -Jx -R -W20/$c4 -M -O -K -V -P >> $psfilepstext -Jx -R -W255 -O -P -V <<END >>$psfile-71.10 95 10 0 1 1 RAY DENSITY TENSOR along Latitude $lat SENDgs $psfile# cleanuprm qual*

⌨️ 快捷键说明

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