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

plane_geo.sh 1.1 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
  1. #!/usr/bin/env bash
  2. # Test strike/dip symbol from Jose for consistency across quadrants
  3. # This version is a Mercator plot and azimuths are given.
  4. ps=plane_geo.ps
  5. echo "0 0 60 30" > q1.txt
  6. echo "0 0 150 30" > q2.txt
  7. echo "0 0 240 30" > q3.txt
  8. echo "0 0 330 30" > q4.txt
  9. gmt psxy -R-0.7/0.7/-0.7/0.7 -JM7c -Sk${src:-.}/plane_c/5c -P -N -W2p,red -Gred -Bag0.5 -BWSne q3.txt -K > $ps
  10. awk '{printf "@~a@~ = %s@.\n", $3}' q3.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  11. gmt psxy -R -J -Sk${src:-.}/plane_c/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q4.txt -K -Y10c >> $ps
  12. awk '{printf "@~a@~ = %s@.\n", $3}' q4.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  13. gmt psxy -R -J -Sk${src:-.}/plane_c/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q1.txt -K -X9c >> $ps
  14. awk '{printf "@~a@~ = %s@.\n", $3}' q1.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  15. gmt psxy -R -J -Sk${src:-.}/plane_c/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q2.txt -K -Y-10c >> $ps
  16. awk '{printf "@~a@~ = %s@.\n", $3}' q2.txt | gmt pstext -R -J -O -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
Tip!

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

Comments

Loading...