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

wrapping.sh 1.0 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
  1. #!/usr/bin/env bash
  2. #
  3. # Test how gmt psxy handles polygons that wrap around periodic boundaries
  4. # testpol.d is a nasty polygon that exceeds 360-degree range.
  5. ps=wrapping.ps
  6. gmt psxy -Rg -JH180/3i -Bg30 -Gred testpol.d -P -K > $ps
  7. gmt psxy -R -J -W0.25p testpol.d -O -K >> $ps
  8. gmt psxy -Rg -JQ110/3i -B60g30 -BEwSn -Gred testpol.d -O -K -X3.5i >> $ps
  9. gmt psxy -R -J -W0.25p testpol.d -O -K >> $ps
  10. #
  11. gmt psxy -Rg -JH0/3i -Bg30 -Gred testpol.d -O -K -X-3.5i -Y2.3i >> $ps
  12. gmt psxy -R -J -W0.25p testpol.d -O -K >> $ps
  13. gmt psxy -Rg -JI30/3i -Bg30 -Gred testpol.d -O -K -X3.5i >> $ps
  14. gmt psxy -R -J -W0.25p testpol.d -O -K >> $ps
  15. #
  16. gmt psxy -R0/360/-90/90 -JX3/1.5i -B60g30 -BWSne -Gred testpol.d -O -K -X-3.5i -Y2.3i >> $ps
  17. gmt psxy -R -J -W0.25p testpol.d -O -K >> $ps
  18. gmt psxy -Rg -JA180/0/2i -Bg30 -Gred testpol.d -O -K -X4i -Y-0.25i >> $ps
  19. gmt psxy -R -J -W0.25p testpol.d -O -K >> $ps
  20. #
  21. gmt psxy -R-220/220/-90/90 -JX6.5/1.75i -B60g30 -BWSne -Gred testpol.d -O -K -X-4i -Y2.7i >> $ps
  22. gmt psxy -R -J -W0.25p testpol.d -O >> $ps
Tip!

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

Comments

Loading...