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

headercheck.sh 722 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
  1. #!/usr/bin/env bash
  2. # Test that symbols pick up correct -W -G from command line or ps=headercheck.ps
  3. ps=headercheck.ps
  4. gmt psxyz -R-1/10/-1/10/0/1 -JX5/4 -JZ1 -p135/35 -P -B2g1 -Sc0.2i -Gyellow -W2.5p,cyan -K << EOF > $ps
  5. > -Ggreen -W1p,black
  6. 0 0 0
  7. 1 1 0
  8. > -Gred -W-
  9. 2 2 0
  10. 3 3 0
  11. > -Gblue -W+
  12. 4 4 0
  13. 5 5 0
  14. > -G-
  15. 6 6 0
  16. 7 7 0
  17. > -G -Wthin,-
  18. 8 8 0
  19. 9 9 0
  20. EOF
  21. #
  22. # Now test that lines/polygons are OK
  23. cat << EOF > tt.cpt
  24. 3 p100/9 6 -
  25. 6 cyan 9 yellow
  26. EOF
  27. gmt psxyz -R -J -JZ -p135/35 -O -Y4.25i -Gred -L -B2g1 -Ctt.cpt << EOF >> $ps
  28. > -Ggreen -W
  29. 0 0 0
  30. 2 2 0
  31. 0 2 0
  32. > -G- -W1p,blue
  33. 2 0 0
  34. 4 4 0
  35. 3 3 0
  36. 2 0 0
  37. > -G -W1p,-
  38. 0 4 0
  39. 3 6 0
  40. 2 7 0
  41. > -Gp32+r100 -W-
  42. 5 0 0
  43. 6 5 0
  44. 4 3 0
  45. > -W- -Z8
  46. 7 4 0
  47. 9 5 0
  48. 8 7 0
  49. > -W1p -Z5
  50. 8 7 0
  51. 9 9 0
  52. 6 9 0
  53. EOF
Tip!

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

Comments

Loading...