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

geovector2.sh 782 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
  1. #!/usr/bin/env bash
  2. #
  3. # Check geovector symbols
  4. ps=geovector2.ps
  5. # Vector from point with head at end
  6. cat << EOF > t.txt
  7. -40 30 0 60 10000n
  8. 0 -30 0 20 7000n
  9. EOF
  10. gmt psxyz -R-180/180/-75/75 -JM6i -Bag -W0.5p,red -S=0.4i+jb+e+r+h1 -P -Gred t.txt -K -p155/35 > $ps
  11. gmt psxyz -R -J -O -K -Sc0.05i -Gred t.txt -p155/35 >> $ps
  12. # Centered double-head vector
  13. cat << EOF > t.txt
  14. -120 0 0 45 100d
  15. 60 -50 0 20 60d
  16. EOF
  17. gmt psxyz -R -J -W0.5p,blue -S=0.4i+jc+b+e+h1 -Gblue t.txt -O -K -p155/35 >> $ps
  18. gmt psxyz -R -J -Sc0.05i -Gblue t.txt -O -K -p155/35 >> $ps
  19. # Vector to point with head at start
  20. cat << EOF > t.txt
  21. -60 10 0 5 8000
  22. -140 -65 0 80 6000
  23. EOF
  24. gmt psxyz -R -J -W0.5p,black -S=0.4i+je+e+a20+l+h1 t.txt -O -K -p155/35 >> $ps
  25. gmt psxyz -R -J -Sc0.05i -Gblack t.txt -O -p155/35 >> $ps
Tip!

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

Comments

Loading...