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

full_moment_tensor.sh 885 B

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
  1. #!/usr/bin/env bash
  2. #
  3. # Check full moment tensor, especially with big isotropic components.
  4. #
  5. # The data files and original script are provided by Carl Tape,
  6. # available from https://github.com/carltape/compearth, licensed under MIT license.
  7. #
  8. # Also see https://github.com/GenericMappingTools/gmt/issues/661.
  9. #
  10. ps=full_moment_tensor.ps
  11. gmt set PS_MEDIA 21.5ix9.5i MAP_TICK_LENGTH 0.0c
  12. gmt psxy -JH0/2.8i -R-30/30/-90/90 -T -K -P -X0.5i -Y0.5i > $ps
  13. for dfile in fullmt_ipts1_iref1 \
  14. fullmt_ipts1_iref2 \
  15. fullmt_ipts1_iref3 \
  16. fullmt_ipts1_iref4 \
  17. fullmt_ipts1_iref5 \
  18. fullmt_ipts2_iref3; do
  19. gmt psbasemap -J -R -Bxa10f5g10 -Bya10f5g10 -Bwesn+g200 -K -O >> $ps
  20. gmt psmeca ${dfile} -J -R -Sm0.45i/8p -L0.5p,0/0/0 -G255/0/0 -N -K -O >> $ps
  21. gmt psxy -J -R -T -K -O -X3.5i >> $ps
  22. done
  23. gmt psxy -R -J -O -T >> $ps
  24. gmt psconvert -A -P -Tf $ps
  25. rm gmt.conf gmt.history
Tip!

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

Comments

Loading...