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_fixed.sh 1.2 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
  1. #!/usr/bin/env bash
  2. ps=layout_fixed.ps
  3. function plot_it {
  4. gmt grdtrack @Matthews_2016_subduction_subset.txt -Gdummy.nc -C500k/100/100${1} > sz_pol_left.gmt
  5. awk '{ if ( $1 == ">") print $0 ; else if ($3 <= 0) print $0 }' sz_pol_left.gmt > Lhalfxprofile.gmt
  6. awk '{ if ( $1 == ">") print $0 ; else if ($3 >= 0) print $0 }' sz_pol_left.gmt > Rhalfxprofile.gmt
  7. gmt psxy -R -J -O -K -W1p @Matthews_2016_subduction_subset.txt
  8. gmt psxy -R -J -O Lhalfxprofile.gmt -W1p,red -K
  9. gmt psxy -R -J Rhalfxprofile.gmt -W1p,blue -O -K
  10. gmt psxy -R -J Rhalfxprofile.gmt -Sc0.4c -Gblue -O -K
  11. gmt psxy -R -J Lhalfxprofile.gmt -Sc0.4c -Gred -O -K
  12. gmt pstext -R -J -O -K sz_pol_left.gmt -F+f9p,Helvetica,white+r0
  13. gmt psxy -R -J -O -K -Ss0.25i -Gblack @Matthews_2016_subduction_subset.txt
  14. gmt pstext -R -J -O -K @Matthews_2016_subduction_subset.txt -F+f12p,Helvetica,white+r0
  15. echo $1 | gmt pstext -R -J -O -K -F+cTL+jTL+f18p -Dj0.2i -Gwhite
  16. }
  17. gmt grdmath -R135/162/42/51 -I1 X = dummy.nc
  18. gmt psbasemap -R135/162/42/51 -JM6i -Bafg -BWSnE -P -K -Xc > $ps
  19. plot_it +f130 >> $ps
  20. gmt psbasemap -R -J -O -Bafg -BWsnE -K -Y3.1i >> $ps
  21. plot_it +f90 >> $ps
  22. gmt psbasemap -R -J -O -Bafg -BWsnE -K -Y3.1i >> $ps
  23. plot_it >> $ps
  24. 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...