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

seis_04.sh 1.4 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
39
40
41
42
43
44
45
  1. #!/usr/bin/env bash
  2. ps=seis_04.ps
  3. gmt set PROJ_LENGTH_UNIT inch MAP_TICK_LENGTH_PRIMARY 0.075i MAP_FRAME_WIDTH 0.1i MAP_ORIGIN_X 2.5c MAP_ORIGIN_Y 1.3i
  4. # Plotting 2 mechanisms on map
  5. gmt psmeca -R128/130/10/11.1 -JX2id -Fa0.1i/cc -Sc0.4i -B1 -Y8.5i -P -K << EOF > $ps
  6. # lon lat dep str dip rake str dip rake m ex nx ny
  7. 129.5 10.5 10 0 90 0 90 90 180 1 24 0 0 10km
  8. 128.5 10.5 40 0 45 90 180 45 90 1 24 0 0 40km
  9. EOF
  10. (echo 128 11; echo 130 11) | gmt psxy -R -J -K -O -W0.25p,red >> $ps
  11. gmt pstext -R -J -N -F+f14p,Helvetica-Bold+j -K -O << EOF >> $ps
  12. 128 11 ML P1
  13. 130 11 MR P2
  14. EOF
  15. plots () {
  16. y_offset=-2.5i
  17. for a in $1 $2 $3 ; do
  18. gmt pscoupe -R0/250/0/100 -JX1.5i/-1.5i -Bxa100f10 -Bya50f10 -BWesN \
  19. -Q -L -Sc0.4 -Ab$4/$5/$a/250/90/$6/0/100f -Ggrey -Fa0.1i/cc $7 $8 \
  20. -Y$y_offset -X$x_offset -O -K << EOF
  21. # lon lat dep str dip rake str dip rake m ex nx ny
  22. 129.5 10.5 10 0 90 0 90 90 180 1 24 0 0 10km
  23. 128.5 10.5 40 0 45 90 180 45 90 1 24 0 0 40km
  24. EOF
  25. gmt pstext -R -J -F+f18p,Helvetica-Bold+jBR -O -K <<< "240 90 $a"
  26. y_offset=0i
  27. x_offset=2.5i
  28. done
  29. x_offset=-5i
  30. }
  31. x_offset=0i
  32. plots 0 40 80 128 10.0 200 >> $ps
  33. plots 120 160 200 128 11.0 400 -N >> $ps
  34. plots 240 280 320 130 10.5 200 -N >> $ps
  35. gmt pstext -X-5i -R0/10/0/15 -Jx1i -F+jBL+fHelvetica-Bold+f -O << EOF >> $ps
  36. 3 8.5 24 Variation of azimuth
  37. 3 8.0 20 vertical cross-section
  38. EOF
Tip!

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

Comments

Loading...