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 633 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
56
  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 psxy -R-1/10/-1/10 -JX6i/4i -P -B2g1 -Sc0.2i -Gyellow -W2.5p,cyan -K << EOF > $ps
  5. > -Ggreen -W1p,black
  6. 0 0
  7. 1 1
  8. > -Gred -W-
  9. 2 2
  10. 3 3
  11. > -Gblue -W
  12. 4 4
  13. 5 5
  14. > -G-
  15. 6 6
  16. 7 7
  17. > -G -Wthin,-
  18. 8 8
  19. 9 9
  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 psxy -R -J -O -Y4.75i -Gred -L -B2g1 -Ctt.cpt << EOF >> $ps
  28. > -Ggreen -W
  29. 0 0
  30. 2 2
  31. 0 2
  32. > -G- -W1p,blue
  33. 2 0
  34. 4 4
  35. 3 3
  36. 2 0
  37. > -G -W1p,-
  38. 0 4
  39. 3 6
  40. 2 7
  41. > -Gp32+r100 -W-
  42. 5 0
  43. 6 5
  44. 4 3
  45. > -W- -Z8
  46. 7 4
  47. 9 5
  48. 8 7
  49. > -W1p -Z5
  50. 8 7
  51. 9 9
  52. 6 9
  53. EOF
Tip!

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

Comments

Loading...