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

meca_2c.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
46
47
48
49
50
51
  1. #!/bin/bash
  2. # $Id$
  3. . ../functions.sh
  4. header "Test psmeca for plotting focal mechanisms (2c)"
  5. ps=meca_2c.ps
  6. gmtset 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
  7. # Plotting 2 mechanisms on map
  8. psmeca -R128/130/10/11.1 -JX2i -a0.1i/cc -Sc0.4i -B1 -Y8.5i -P -K << EOF > $ps
  9. # lon lat dep str dip rake str dip rake m ex nx ny
  10. 129.5 10.5 10 0 90 0 90 90 180 1 24 0 0 10km
  11. 128.5 10.5 40 0 45 90 180 45 90 1 24 0 0 40km
  12. EOF
  13. (echo 128 11; echo 130 11) | psxy -R -J -K -O -W0.25p,red >> $ps
  14. pstext -R -J -N -F+f14p,Helvetica-Bold+j -K -O << EOF >> $ps
  15. 128 11 ML P1
  16. 130 11 MR P2
  17. EOF
  18. plots () {
  19. y_offset=-2.5i
  20. for a in $1 $2 $3 ; do
  21. pscoupe -R0/250/0/100 -JX1.5i -Ba100f10/a50f10WesN \
  22. -Q -L -Sc0.4 -Ab$4/$5/$a/250/90/$6/0/100f -Ggrey -a0.1i/cc $7 $8 \
  23. -Y$y_offset -X$x_offset -O -K << EOF
  24. # lon lat dep str dip rake str dip rake m ex nx ny
  25. 129.5 10.5 10 0 90 0 90 90 180 1 24 0 0 10km
  26. 128.5 10.5 40 0 45 90 180 45 90 1 24 0 0 40km
  27. EOF
  28. pstext -R -J -F+f18p,Courier-Bold+jBR -O -K <<< "240 85 $a"
  29. y_offset=0i
  30. x_offset=2.5i
  31. done
  32. x_offset=-5i
  33. }
  34. x_offset=0i
  35. plots 0 40 80 128 10.0 200 >> $ps
  36. plots 120 160 200 128 11.0 400 -N >> $ps
  37. plots 240 280 320 130 10.5 200 -N >> $ps
  38. pstext -X-5i -R0/10/0/15 -Jx1i -F+jBL+fHelvetica-Bold+f -O << EOF >> $ps
  39. 3 8.5 24 Variation of azimuth
  40. 3 8.0 20 vertical cross-section
  41. EOF
  42. pscmp
Tip!

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

Comments

Loading...