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

pspolar_02.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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  1. #!/usr/bin/env bash
  2. # Draw fault planes and points that should lie on them
  3. # K. Feigl, 2015-11-08
  4. ps=pspolar_02.ps
  5. gmt psbasemap -R-8/8/-10/10 -JX7i -P -Xc -K -B+t"circles should plot on curves" > $ps
  6. COUNTER=0
  7. while [ $COUNTER -lt 10 ]; do
  8. let COUNTER=COUNTER+1
  9. let STRIKEF=`echo $COUNTER | awk '{print $1*36}'` # strike of fault plane
  10. let STRIKEP=`echo $STRIKEF | awk '{print $1+90}'` # strike of point
  11. let DIP=` echo $COUNTER | awk '{print $1*9}'`
  12. #echo COUNTER $COUNTER STRIKE $STRIKEF DIP $DIP
  13. # plot planes
  14. gmt psmeca -R -J -P -Sa6i+m -N -W1p -O -K -h4 -C -T << EOF >> $ps
  15. #a) Focal mechanism in Aki & Richard's convention:
  16. # 0 1 2 3 4 5 6 7 8 9
  17. # X, Y, depth, strike, dip, rake, mag, newX, newY, event_title
  18. # 0 0. 1. 0 90 0. 5.5 0. 0. test90-90
  19. 0 0. 1. $STRIKEF $DIP 0. 5.5 0. 0. $COUNTER
  20. EOF
  21. # and polarities observed
  22. gmt pspolar -R -J -D0./0. -M4c -N -Sc0.2i -Qe -O -K -P -h3 << EOF >> $ps
  23. # ID strike plunge Compression/Dilatation
  24. # 1 90 45 d
  25. # 1 0 45 d
  26. 1 $STRIKEP $DIP d
  27. EOF
  28. done
  29. gmt psbasemap -R -J -P -V -O -B0 >> $ps
Tip!

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

Comments

Loading...