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

clipping3.sh 553 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
  1. #!/usr/bin/env bash
  2. #
  3. # Check clipping of polygons outside region and with dateline
  4. ps=clipping3.ps
  5. cat << EOF > a.txt
  6. 150 -65
  7. 150 -55
  8. 170 -55
  9. 170 -65
  10. 150 -65
  11. EOF
  12. cat << EOF > b.txt
  13. -170 -65
  14. -170 -55
  15. 170 -55
  16. 170 -65
  17. -170 -65
  18. EOF
  19. gmt psxy a.txt -Bx5 -By2 -BWSne -R140/175/-66/-60 -JM10c -W0.5p,red -Ggray -K -P -Xc > $ps
  20. gmt psxy a.txt -Bx5 -By2 -BWSne -R -J -W0.5p,green -O -K -Y2.3i >> $ps
  21. gmt psxy b.txt -Bx5 -By2 -BWSne -R165/200/-66/-60 -J -W0.5p,red -Ggray -O -K -Y2.3i >> $ps
  22. gmt psxy b.txt -Bx5 -By2 -BWSne -R -J -W0.5p,green -O -Y2.3i >> $ps
Tip!

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

Comments

Loading...