Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

layout.sh 1.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  1. #!/usr/bin/env bash
  2. # Test script to ensure forum message 3511 has been dealt with
  3. ps=layout.ps
  4. function plot_it {
  5. gmt grdtrack @Matthews_2016_subduction_subset.txt -Gdummy.nc -C500k/100/100${1} > sz_pol_left.gmt
  6. awk '{ if ( $1 == ">") print $0 ; else if ($3 <= 0) print $0 }' sz_pol_left.gmt > Lhalfxprofile.gmt
  7. awk '{ if ( $1 == ">") print $0 ; else if ($3 >= 0) print $0 }' sz_pol_left.gmt > Rhalfxprofile.gmt
  8. gmt psxy -R -J -O -K -W1p @Matthews_2016_subduction_subset.txt
  9. gmt psxy -R -J -O Lhalfxprofile.gmt -W1p,red -K
  10. gmt psxy -R -J Rhalfxprofile.gmt -W1p,blue -O -K
  11. gmt psxy -R -J Rhalfxprofile.gmt -Sc0.4c -Gblue -O -K
  12. gmt psxy -R -J Lhalfxprofile.gmt -Sc0.4c -Gred -O -K
  13. gmt pstext -R -J -O -K sz_pol_left.gmt -F+f9p,Helvetica,white+r0
  14. gmt psxy -R -J -O -K -Ss0.25i -Gblack @Matthews_2016_subduction_subset.txt
  15. gmt pstext -R -J -O -K @Matthews_2016_subduction_subset.txt -F+f12p,Helvetica,white+r0
  16. echo $1 | gmt pstext -R -J -O -K -F+cTL+jTL+f18p -Dj0.2i -Gwhite
  17. }
  18. gmt grdmath -R135/162/42/51 -I1 X = dummy.nc
  19. gmt psbasemap -R135/162/42/51 -JM6i -Bafg -BWSnE -P -K -Xc > $ps
  20. plot_it +v >> $ps
  21. gmt psbasemap -R -J -O -Bafg -BWsnE -K -Y3.1i >> $ps
  22. plot_it +a >> $ps
  23. gmt psbasemap -R -J -O -Bafg -BWsnE -K -Y3.1i >> $ps
  24. plot_it >> $ps
  25. gmt psxy -R -J -O -T >> $ps
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...