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_CPTscale.sh 672 B

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
  1. #!/usr/bin/env bash
  2. gmt begin GMT_CPTscale
  3. gmt plot -R0/6/0/6 -Jx1i -W0.25p << EOF
  4. > Normal scaling of whole CPT
  5. 3 2.9
  6. 5 2.5
  7. >
  8. 3 0.1
  9. 5 0.5
  10. > Truncated with -G
  11. 3 2.2
  12. 1 2.5
  13. >
  14. 3 1.08
  15. 1 0.5
  16. > Dash the hinges -W0.25p,-
  17. 1 0.785
  18. 3 1.5
  19. >
  20. 3 1.5
  21. 5 0.785
  22. EOF
  23. gmt colorbar -Cglobe -B -Dx3i/1.5i+w2.8i/0.15i+jCM -W0.001
  24. gmt makecpt -Cglobe -T-500/3000
  25. gmt colorbar -C -B -Dx5i/1.5i+w2.0i/0.15i+jLM -W0.001
  26. gmt makecpt -Cglobe -G-3000/5000 -T-500/3000
  27. gmt colorbar -C -B -Dx1i/1.5i+w2.0i/0.15i+jRM+ma -W0.001
  28. gmt text -N -F+f14p+j << EOF
  29. 0 0 LB Scale a subset (via @%1%-G@%%)
  30. 6 0 RB Scale entire range
  31. 3 3.1 CB Master CPT
  32. 1 3.1 CB New CPT v1
  33. 5 3.1 CB New CPT v2
  34. EOF
  35. gmt end show
Tip!

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

Comments

Loading...