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

circles.sh 1.2 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
  1. #!/usr/bin/env bash
  2. #
  3. # Another test for gmt project in generating small and great circles
  4. ps=circles.ps
  5. # Small circle 30 degrees colat
  6. gmt project -C202/24.5 -E240.5/31 -G5/30 -Q | gmt psxy -R190/250/20/35 -JM6i -P -K -Baf -Xc > $ps
  7. gmt psxy -R -J -O -K -Sc0.1i -Gred << EOF >> $ps
  8. 202 24.5
  9. 240.5 31
  10. EOF
  11. gmt pstext -R -J -O -K -F+cTL+jTL+f14p+t"Colatitude: 30 degrees" -Dj0.1i >> $ps
  12. # Small circle 45 degrees colat
  13. gmt project -C202/24.5 -E240.5/31 -G5/45 -Q | gmt psxy -R -J -O -K -Baf -Y2.5i >> $ps
  14. gmt psxy -R -J -O -K -Sc0.1i -Gred << EOF >> $ps
  15. 202 24.5
  16. 240.5 31
  17. EOF
  18. gmt pstext -R -J -O -K -F+cTL+jTL+f14p+t"Colatitude: 45 degrees" -Dj0.1i >> $ps
  19. # Small circle 60 degrees colat
  20. gmt project -C202/24.5 -E240.5/31 -G5/45 -Q | gmt psxy -R -J -O -K -Baf -Y2.5i >> $ps
  21. gmt psxy -R -J -O -K -Sc0.1i -Gred << EOF >> $ps
  22. 202 24.5
  23. 240.5 31
  24. EOF
  25. gmt pstext -R -J -O -K -F+cTL+jTL+f14p+t"Colatitude: 60 degrees" -Dj0.1i >> $ps
  26. # Great circle
  27. gmt project -C202/24.5 -E240.5/31 -G5 -Q | gmt psxy -R -J -O -K -Baf -Y2.5i >> $ps
  28. gmt psxy -R -J -O -K -Sc0.1i -Gred << EOF >> $ps
  29. 202 24.5
  30. 240.5 31
  31. EOF
  32. gmt pstext -R -J -O -F+cTL+jTL+f14p+t"Colatitude: 90 degrees" -Dj0.1i >> $ps
Tip!

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

Comments

Loading...