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

line_geo.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
  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=line_geo.ps
  5. # Must copy the specific symbol file from the documentation to here.
  6. DIR=$(gmt --show-sharedir)/../doc/rst/source/users-contrib-symbols/geology
  7. cp -f ${DIR}/geo-lineation.def .
  8. echo "0 0 60 30" > q1.txt
  9. echo "0 0 150 30" > q2.txt
  10. echo "0 0 240 30" > q3.txt
  11. echo "0 0 330 30" > q4.txt
  12. gmt psxy -R-0.7/0.7/-0.7/0.7 -JM7c -Skgeo-lineation/5c -P -N -W2p,red -Gred -Bag0.5 -BWSne q3.txt -K > $ps
  13. awk '{printf "@~a@~ = %s@.\n", $3}' q3.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  14. gmt psxy -R -J -Skgeo-lineation/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q4.txt -K -Y10c >> $ps
  15. awk '{printf "@~a@~ = %s@.\n", $3}' q4.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  16. gmt psxy -R -J -Skgeo-lineation/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q1.txt -K -X9c >> $ps
  17. awk '{printf "@~a@~ = %s@.\n", $3}' q1.txt | gmt pstext -R -J -O -K -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  18. gmt psxy -R -J -Skgeo-lineation/5c -O -N -W2p,red -Gred -Bag0.5 -BWSne q2.txt -K -Y-10c >> $ps
  19. awk '{printf "@~a@~ = %s@.\n", $3}' q2.txt | gmt pstext -R -J -O -F+f10p+cBL -Gwhite -Dj0.2c >> $ps
  20. rm -f geo-lineation.def
Tip!

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

Comments

Loading...