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

GMT_slopes.sh 883 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
28
29
30
31
32
33
34
35
36
  1. #!/usr/bin/env bash
  2. # Show gmtregress -A option in effect
  3. ps=GMT_slopes.ps
  4. cat << EOF > data
  5. 5.2957 -19.5631
  6. 7.087 -36.0337
  7. 4.7318 -22.9612
  8. 10.7389 -43.3934
  9. 13.2405 -12.6665
  10. 10.8035 -28.1462
  11. 17.9197 -13.7448
  12. 5.0468 -30.0907
  13. 6.6409 -20.6262
  14. 2.0459 -38.0396
  15. 0.0963 -45.2655
  16. 15.1622 -25.3824
  17. 14.108 -30.4538
  18. 15.1111 -32.6112
  19. 5.07 -26.6111
  20. 8.81 -25.579
  21. 5.89 -31.2512
  22. 11.28 -37.4959
  23. EOF
  24. gmt regress data -A-90/90/0.1 -Eo -Nr > tmp.txt
  25. gmt psxy tmp.txt -R-90/90/0/35 -JX15c/5c -Bxa30+u@.+l"Regression line angle, @~a@~" -Byaf+l"Misfit, E(@~a@~)" -BWSrt -P -K -W0.75p > $ps
  26. echo -90 5.29462 90 5.29462 | gmt psxy -R -J -O -K -Sv12p+s -W0.25p,dashed >> $ps
  27. gmt psxy -R -J -O -K -Sv12p+b -Gblack -W0.5p --MAP_VECTOR_SHAPE=0.5 << EOF >> $ps
  28. 78.6 6.32 90 2.6c
  29. -78.3 5.3 90 2.7c
  30. EOF
  31. gmt pstext -R -J -O -F+f12p+jCB -Dj0/0.1c << EOF >> $ps
  32. 78.6 25 78.6@.
  33. -78.3 25 -78.3@.
  34. EOF
  35. rm -f data tmp.txt
Tip!

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

Comments

Loading...