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

gallery.sh 2.6 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  1. #!/usr/bin/env bash
  2. # Test all gmt psrose region and types
  3. ps=gallery.ps
  4. common0="@azimuth_lengths.txt -: -JX5c -F -L -Ggray -R0/150/-90/90 -Bxg25 -Byg90 -BWESN -O -K"
  5. common1="@azimuth_lengths.txt -: -JX5c -F -L -Ggray -R0/150/0/180 -Bxg25 -Byg90 -BWESN -O -K"
  6. common0n="@azimuth_lengths.txt -: -JX5c -F -L -Ggray -R0/5/-90/90 -Bxg1 -Byg90 -BWESN -O -K"
  7. common1n="@azimuth_lengths.txt -: -JX5c -F -L -Ggray -R0/5/0/180 -Bxg1 -Byg90 -BWESN -O -K"
  8. common="@azimuth_lengths.txt -: -JX5c -F -L -Ggray -R0/150/0/360 -Bxg25 -Byg90 -BWESN -O -K"
  9. commonn="@azimuth_lengths.txt -: -JX5c -F -L -Ggray -R0/1200/0/360 -Bxg200 -Byg90 -BWESN -O -K"
  10. commonu="@azimuth_lengths.txt -: -JX5c -F -L -R0/5/0/360 -Bxg1 -Byg90 -BWESN -O -K"
  11. commonun="@azimuth_lengths.txt -: -JX5c -F -L -R0/1/0/360 -Bxg0.2 -Byg90 -BWESN -O -K"
  12. # Set up blank plot
  13. gmt psxy -R0/5/0/5 -Jx1c -P -K -T > $ps
  14. echo "2.5 -0.5 Sector Diagrams" | gmt pstext -R -J -O -K -N -F+jCT+f12p >> $ps
  15. # 1st column: Default diagram
  16. # Row 1: Default plot
  17. echo "-0.5 2.5 -R0/360/..." | gmt pstext -R0/5/0/5 -J -O -K -N -F+a90+jCB+f12p >> $ps
  18. gmt psrose $common -A5 >> $ps
  19. # Row 2: Apply -T
  20. echo "-0.5 2.5 -R0/360/... -T" | gmt pstext -R0/5/0/5 -J -O -K -N -F+a90+jCB+f12p -Y5.5c >> $ps
  21. gmt psrose $common -A5 -T >> $ps
  22. # Row 3: Apply -Zu -T
  23. echo "-0.5 2.5 -R0/360/... -Zu -T" | gmt pstext -R0/5/0/5 -J -O -K -N -F+a90+jCB+f12p -Y5.5c >> $ps
  24. gmt psrose $commonn -A5 -Zu -T >> $ps
  25. # Row 4: Apply -R-90/90...
  26. echo "-0.5 0 -R-90/90/..." | gmt pstext -R0/5/0/5 -J -O -K -N -F+a90+jLB+f12p -Y6c >> $ps
  27. gmt psrose $common0 -A5 >> $ps
  28. # Row 5: Apply -R0/180...
  29. echo "-0.5 0 -R0/180/..." | gmt pstext -R0/5/0/5 -J -O -K -N -F+a90+jLB+f12p -Y3.5c >> $ps
  30. gmt psrose $common1 -A5 >> $ps
  31. # 2nd column: Rose diagram
  32. # Row 1: Default plot
  33. echo "2.5 -0.5 Rose Diagrams" | gmt pstext -R0/5/0/5 -J -O -K -N -F+jCT+f12p -Y-20.5c -X6c >> $ps
  34. gmt psrose $common -A5r >> $ps
  35. # Row 2: Apply -T
  36. gmt psrose $common -A5r -T -Y5.5c >> $ps
  37. # Row 3: Apply -Zu -T
  38. gmt psrose $commonn -A5r -Zu -T -Y5.5c >> $ps
  39. # Row 4: Apply -R-90/90...
  40. gmt psrose $common0 -A5r -Y6c >> $ps
  41. # Row 5: Apply -R0/180...
  42. gmt psrose $common1 -A5r -Y3.5c >> $ps
  43. # 3rd column: Windrose diagram
  44. echo "2.5 -0.5 Windrose Diagrams" | gmt pstext -R0/5/0/5 -J -O -K -N -F+jCT+f12p -Y-20.5c -X6c >> $ps
  45. # Row 1: Default plot
  46. gmt psrose $commonu >> $ps
  47. # Row 2: Apply -T
  48. gmt psrose $commonu -T -Y5.5c >> $ps
  49. # Row 3: Apply -Zu -T
  50. gmt psrose $commonun -Zu -T -Y5.5c >> $ps
  51. # Row 4: Apply -R-90/90...
  52. gmt psrose $common0n -Y6c >> $ps
  53. # Row 5: Apply -R0/180...
  54. gmt psrose $common1n -Y3.5c >> $ps
  55. # Finalize
  56. gmt psxy -R -J -O -T >> $ps
Tip!

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

Comments

Loading...