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_M_2.sh 1.4 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
39
40
41
42
  1. #!/usr/bin/env bash
  2. gmt begin GMT_App_M_2
  3. gmt set GMT_THEME cookbook
  4. gmt set FONT_ANNOT_PRIMARY 10p PROJ_LENGTH_UNIT cm PS_MEDIA 11ix8.5i
  5. # Set up color palette with named annotations
  6. cat > ages.cpt <<END
  7. #COLOR_MODEL = RGB
  8. #
  9. 0 197 0 255 23 197 0 255 ;Neogene
  10. 23 81 0 255 66 81 0 255 ;Paleogene
  11. 66 0 35 255 146 0 35 255 ;Cretaceous
  12. 146 0 151 255 200 0 151 255 ;Jurassic
  13. 200 0 255 244 251 0 255 244 ;Triassic
  14. 251 0 255 127 299 0 255 127 ;Permian
  15. 299 0 255 11 359 0 255 11 ;Carboniferous
  16. 359 104 255 0 416 104 255 0 ;Devonian
  17. 416 220 255 0 444 220 255 0 ;Silurian
  18. 444 255 174 0 488 255 174 0 ;Ordovician
  19. 488 255 58 0 542 255 58 0 ;Cambrian;Precambrian
  20. B black
  21. F white
  22. END
  23. # Top row, left to right. Using names.
  24. gmt colorbar -Cages.cpt -Dx00/13+w-8/0.5+jML+ef
  25. gmt colorbar -Cages.cpt -Dx04/13+w-8/0.5+jML+ef -L
  26. gmt colorbar -Cages.cpt -Dx08/13+w-8/0.5+jML+ef -L0.0
  27. gmt colorbar -Cages.cpt -Dx12/13+w-8/0.5+jML+ef -L0.1
  28. gmt colorbar -Cages.cpt -Dx16/13+w08/0.5+jML+ef -L
  29. gmt colorbar -Cages.cpt -Dx20/13+w08/0.5+jML+ef -L0.1
  30. # Bottom row, left to right. Using numbers.
  31. sed 's/;.*$//' ages.cpt > years.cpt
  32. gmt colorbar -Cyears.cpt -Dx00/04+w08/0.5+jML+ef
  33. gmt colorbar -Cyears.cpt -Dx04/04+w-8/0.5+jML+ef -L
  34. gmt colorbar -Cyears.cpt -Dx08/04+w-8/0.5+jML+ef -L0.0
  35. gmt colorbar -Cyears.cpt -Dx12/04+w-8/0.5+jML+ef -L0.1
  36. gmt colorbar -Cyears.cpt -Dx16/04+w-8/0.5+jML+ef -Li
  37. gmt colorbar -Cyears.cpt -Dx20/04+w-8/0.5+jML+ef -Li0.1
  38. gmt end show
Tip!

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

Comments

Loading...