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_seamount_map.sh 1.5 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
  1. #!/usr/bin/env bash
  2. # Illustrate the circular and elliptical bases of seamounts
  3. ps=GMT_seamount_map.ps
  4. gmt set MAP_VECTOR_SHAPE 0.5
  5. # Circle
  6. echo 0 0 | gmt psxy -R-1/1/-1/1 -Jx1i -Sc1.3i -W2p -P -K > $ps
  7. echo 0 0 | gmt psxy -R -J -Sc0.1i -Gblack -O -K >> $ps
  8. gmt psxy -R -J -O -K -Sv0.1i+e+s -Gblack -W0.5p -N << EOF >> $ps
  9. -0.8 0 1 0
  10. 0 -0.8 0 1
  11. EOF
  12. gmt psxy -R -J -O -K -W0.25p,- << EOF >> $ps
  13. 0 0
  14. 0.45 0.45
  15. EOF
  16. echo 0.55 0.55 r@-0@- | gmt pstext -R -J -O -K -F+f14p,Times-Italic >> $ps
  17. echo "0 0 lon,lat "| gmt pstext -R -J -O -K -F+f14p,Times-Italic+jTR -Dj0.05i >> $ps
  18. echo circular | gmt pstext -R -J -O -K -F+f16p+cTL >> $ps
  19. # Ellipse
  20. echo 0 0 30 1.7i 0.7i | gmt psxy -R -J -O -K -Se -W2p -X2.5i >> $ps
  21. echo 0 0 | gmt psxy -R -J -Sc0.1i -Gblack -O -K >> $ps
  22. gmt psxy -R -J -O -K -Sv0.1i+e+s -Gblack -W0.5p -N << EOF >> $ps
  23. -0.8 0 1 0
  24. 0 -0.8 0 1
  25. EOF
  26. gmt psxy -R -J -O -K -W0.25p,- << EOF >> $ps
  27. >
  28. 0 0
  29. 0.736121593217 0.425
  30. >
  31. 0 0
  32. -0.175 0.303108891325
  33. EOF
  34. echo 0 0 0.2i 30 90 | gmt psxy -R -J -O -K -Sm4p+b -Gblack -W0.25p >> $ps
  35. echo 0.736121593217 0.425 major | gmt pstext -R -J -O -K -F+f14p,Times-Italic+jBL -Dj0.03i -N >> $ps
  36. echo -0.175 0.303108891325 minor | gmt pstext -R -J -O -K -F+f14p,Times-Italic+jBR -Dj0.03i -N >> $ps
  37. echo 0.125 0.275 @~a@~ | gmt pstext -R -J -O -K -F+f14p,Times-Italic >> $ps
  38. echo "0 0 lon,lat "| gmt pstext -R -J -O -K -F+f14p,Times-Italic+jTR -Dj0.05i >> $ps
  39. echo elliptical | gmt pstext -R -J -O -K -F+f16p+cTL >> $ps
  40. gmt psxy -R -J -O -T >> $ps
Tip!

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

Comments

Loading...