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_seislegend.sh 1.1 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
31
32
33
34
35
36
37
38
  1. #!/usr/bin/env bash
  2. #
  3. # Show a basic seismicity legend
  4. #
  5. gmt begin GMT_seislegend ps
  6. gmt set GMT_THEME cookbook
  7. gmt set FONT_ANNOT_PRIMARY 10p FONT_TITLE 18p FORMAT_GEO_MAP ddd:mm:ssF
  8. # Create standard seismicity color table
  9. gmt makecpt -Cred,green,blue -T0,100,300,10000 -N
  10. # Create legend input file for NEIS quake plot
  11. cat > neis.legend <<- END
  12. H 16p,Helvetica-Bold SEISMICITY AND THE RING OF FIRE
  13. D 0 0.5p
  14. N 3
  15. V 0 1p
  16. S 0.25c c 0.25c red 0.25p 0.5c Shallow depth (0-100 km)
  17. S 0.25c c 0.25c green 0.25p 0.5c Intermediate depth (100-300 km)
  18. S 0.25c c 0.25c blue 0.25p 0.5c Very deep (> 300 km)
  19. D 0 0.5p
  20. V 0 0.5p
  21. N 7
  22. S 0.25c c 0.15c black - 0.75c M 3
  23. S 0.25c c 0.20c black - 0.75c M 4
  24. S 0.25c c 0.25c black - 0.75c M 5
  25. S 0.25c c 0.30c black - 0.75c M 6
  26. S 0.25c c 0.35c black - 0.75c M 7
  27. S 0.25c c 0.40c black - 0.75c M 8
  28. S 0.25c c 0.45c black - 0.75c M 9
  29. N 1
  30. G 9p
  31. L 12p,Times-Italic RB Data from the US National Earthquake Information Center
  32. END
  33. gmt legend -Dx0/0+jBL+o0/1c+w18c -F+p+gfloralwhite+i0.25p+c2p+s neis.legend
  34. rm neis.legend
  35. gmt end show
Tip!

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

Comments

Loading...