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

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

Comments

Loading...