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

custom_azim.sh 1.2 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
58
59
60
  1. #!/usr/bin/env bash
  2. #
  3. # Check two custom symbols symbols with new variables and text capabilities
  4. ps=custom_azim.ps
  5. cat << EOF > t.txt
  6. 5 25 0 20
  7. 10 25 10 20
  8. 15 25 20 20
  9. 5 20 30 20
  10. 10 20 40 20
  11. 15 20 50 20
  12. 5 15 60 20
  13. 10 15 70 20
  14. 15 15 80 20
  15. EOF
  16. cat << EOF > dip2.def
  17. # Macro for geologic strike/dip takes strike (azimuth) and dip (angle) from input file
  18. N: 1 a
  19. # First rotate so strike is horizontal
  20. \$1 R
  21. # Draw the strike line
  22. -0.5 0 M
  23. 0.5 0 D
  24. S
  25. # Draw the dip line
  26. 0 0 M
  27. 0 0.25 D
  28. S
  29. # Fill the dip vector head
  30. 0 0.25 M
  31. -0.025 0.20 D
  32. 0 0.22 D
  33. 0.025 0.20 D
  34. EOF
  35. cat << EOF > dip3.def
  36. # Macro for geologic strike/dip takes strike (azimuth) and dip (angle) from input file
  37. N: 1 o
  38. # First rotate so strike is horizontal
  39. \$1 R
  40. # Draw the strike line
  41. -0.5 0 M
  42. 0.5 0 D
  43. S
  44. # Draw the dip line
  45. 0 0 M
  46. 0 0.25 D
  47. S
  48. # Fill the dip vector head
  49. 0 0.25 M
  50. -0.025 0.20 D
  51. 0 0.22 D
  52. 0.025 0.20 D
  53. EOF
  54. gmt psxy -R0/20/10/30 -JM4i -P -K -Bag -BWSne -W1.5p,red -Skdip2/1i -Xc t.txt > $ps
  55. gmt pstext -R -J -O -K -F+f16p+jTL+cTL+t"AZIMUTH 0-80" -Dj0.1i -Gwhite -W0.25p >> $ps
  56. gmt psxy -R -JX4i -Bag -BWSne -W1.5p,red -Skdip3/1i t.txt -O -K -Y4.75i >> $ps
  57. gmt pstext -R -J -O -F+f16p+jTL+cTL+t"ANGLE 0-80" -Dj0.1i -Gwhite -W0.25p >> $ps
Tip!

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

Comments

Loading...