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

customwidths.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
  1. #!/usr/bin/env bash
  2. #
  3. # Test the -Zwidthfile option
  4. # Widths may be a mix of absolute widths with units or just fractionals
  5. # If a mix then all are considered relative amounts.
  6. ps=customwidths.ps
  7. cat << EOF > tmp.cpt
  8. 1.00 0/0/205 2.00 0/0/205 L
  9. 2.00 0/7/252 4.00 0/7/252 L
  10. 4.00 4/129/252 6.00 4/129/252 L
  11. 6.00 19/205/253 8.00 19/205/253 L
  12. 8.00 31/253/250 10.0 31/253/25 L
  13. 10.0 55/253/210 20.0 55/253/210 L
  14. 20.0 174/254/91 40.0 174/254/91 L
  15. 40.0 255/209/42 60.0 255/209/42 L
  16. 60.0 254/137/35 80.0 254/137/35 L
  17. 80.0 254/87/32 100. 254/87/32 L
  18. 100. 254/53/31 200. 254/53/31 B
  19. EOF
  20. cat << EOF > widths.txt
  21. 0.30103c
  22. 0.30103i
  23. 0.176091
  24. 0.124939
  25. 0.1i
  26. 24p
  27. 0.30103
  28. 0.176091
  29. 0.124939
  30. 0.09691
  31. 0.30103
  32. EOF
  33. gmt psscale -Ctmp.cpt -Dx2c/11c+w15c/0.5c+jML -K -Zwidths.txt -P > $ps
  34. gmt psscale -Ctmp.cpt -Dx6c/11c+w20c/0.5c+jML -O -K -Zwidths.txt >> $ps
  35. gmt math widths.txt 3.76 MUL = tmp.txt
  36. gmt psscale -Ctmp.cpt -Dx10c/11c+w15c/0.5c+jML -O -K -Ztmp.txt >> $ps
  37. gmt psscale -Ctmp.cpt -Dx14c/11c+w20c/0.5c+jML -O -Ztmp.txt >> $ps
Tip!

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

Comments

Loading...