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

GMT_App_O_9.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
26
27
28
29
30
  1. #!/usr/bin/env bash
  2. #
  3. # Makes Fig 9 for Appendix O (labeled lines)
  4. #
  5. gmt begin GMT_App_O_9
  6. gmt set GMT_THEME cookbook
  7. R=-R-85/5/10/55
  8. gmt grdgradient @earth_relief_05m_g $R -Nt1 -A45 -Gtopo5_int.nc
  9. gmt set FORMAT_GEO_MAP ddd:mm:ssF FONT_ANNOT_PRIMARY +9p FONT_TITLE 22p
  10. gmt project -E-74/41 -C-17/28 -G10 -Q > great_NY_Canaries.txt
  11. gmt project -E-74/41 -C2.33/48.87 -G100 -Q > great_NY_Paris.txt
  12. km=$(echo -17 28 | gmt mapproject -G-74/41+uk -fg --FORMAT_FLOAT_OUT=%.0f -o2)
  13. gmt makecpt -Clightred,lightyellow,lightgreen -T0,3,6,100 -N
  14. gmt grdimage @App_O_ttt.nc -Itopo5_int.nc -C $R -JM5.3i -nc+t1
  15. gmt grdcontour @App_O_ttt.nc -C0.5 -A1+u" hour"+v+f8p,Bookman-Demi \
  16. -GL80W/31N/17W/26N,17W/28N/17W/50N -S2
  17. gmt plot -Wfatter,white great_NY_Canaries.txt
  18. gmt coast -B20f5 -BWSne+t"Tsunami travel times from the Canaries" -N1/thick \
  19. -Glightgray -Wfaint -A500
  20. gmt convert great_NY_*.txt -E | gmt plot $R -Sa0.15i -Gred -Wthin
  21. gmt plot -Wthick great_NY_Canaries.txt \
  22. -Sqn1:+f8p,Times-Italic+l"Distance Canaries to New York = $km km"+ap+v
  23. gmt plot great_NY_Paris.txt -Sc0.08c -Gblack
  24. gmt plot -Wthinner great_NY_Paris.txt -SqD1000k:+an+o+gblue+LDk+f7p,Helvetica-Bold,white
  25. cat << EOF | gmt text -Gwhite -Wthin -Dj0.1i -F+f8p,Bookman-Demi+j
  26. 74W 41N RT New York
  27. 2.33E 48.87N CT Paris
  28. 17W 28N CT Canaries
  29. EOF
  30. gmt end show
Tip!

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

Comments

Loading...