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

hardsoft.sh 1.9 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
  1. #!/usr/bin/env bash
  2. # Further exploration of both soft and hard hinges
  3. ps=hardsoft.ps
  4. gmt makecpt -Cgeo -T-1/2 > t.cpt
  5. gmt psscale -Dx0/0+w6i+jBL -Ct.cpt -Bxaf -By+l"a)" -K -P -X0.75i > $ps
  6. gmt makecpt -Cgeo+h0.5 -T-1/2 > t.cpt
  7. gmt psscale -Dx0.75i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"b)" -O -K >> $ps
  8. gmt makecpt -Cgeo+h-0.5 -T-1/2 > t.cpt
  9. gmt psscale -Dx1.5i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"c)" -O -K >> $ps
  10. gmt makecpt -Cgeo -T1/2 > t.cpt
  11. gmt psscale -Dx2.25i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"d)" -O -K >> $ps
  12. gmt makecpt -Cgeo -T-2/-1 > t.cpt
  13. gmt psscale -Dx3i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"e)" -O -K >> $ps
  14. gmt makecpt -Cpolar -T-10/20 > t.cpt
  15. gmt psscale -Dx3.75i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"f)" -O -K >> $ps
  16. gmt makecpt -Cpolar+h -T-10/20 > t.cpt
  17. gmt psscale -Dx4.5i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"g)" -O -K >> $ps
  18. gmt makecpt -Cpolar+h-5 -T-10/20 > t.cpt
  19. gmt psscale -Dx5.26i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"h)" -O -K >> $ps
  20. gmt makecpt -Cpolar+h -T0/20 > t.cpt
  21. gmt psscale -Dx6i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"i)" -O -K >> $ps
  22. gmt makecpt -Cpolar+h-5 -T-10/-5 > t.cpt
  23. gmt psscale -Dx6.75i/0+w6i+jBL -Ct.cpt -Bxaf -By+l"j)" -O -K >> $ps
  24. gmt pstext -R0/6/-2/9 -Jx1i/-0.2i -Y6.5i -F+f10p+jBL -O -N<< EOF >> $ps
  25. 0 0 a) -Cgeo -T-1/2 [Normal hard hinge behavior at z = 0]
  26. 0 1 b) -Cgeo+h0.5 -T-1/2 [Relocate hard hinge to +0.5 km]
  27. 0 2 c) -Cgeo+h-0.5 -T-1/2 [Relocate hard hinge to -0.5 km]
  28. 0 3 d) -Cgeo -T1/2 [Range above hard hinge z = 0; lower CPT removed, no hinge]
  29. 0 4 e) -Cgeo -T-2/-1 [Range below hard hinge z = 0; upper CPT removed, no hinge]
  30. 0 5 f) -Cpolar -T-10/20 [Normal behavior is to ignore soft hinges]
  31. 0 6 g) -Cpolar+h -T-10/20 [Activate hinge at z = 0]
  32. 0 7 h) -Cpolar+h-5 -T-10/20 [Activate hinge at z = -5]
  33. 0 8 i) -Cpolar+h -T0/20 [Activate hinge z = 0 but range above; lower CPT removed, no hinge]
  34. 0 9 j) -Cpolar+h-5 -T-10/-5 [Activate hinge at z = -5 but range is below; upper CPT removed, no hinge]
  35. EOF
Tip!

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

Comments

Loading...