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

btruncate.sh 500 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
  1. #!/usr/bin/env bash
  2. # Test gmtspatial truncating a polygon to a -R setting that
  3. # is tangent to the polygon at W/S. Fails when polygon exceeds
  4. # x = 190 which is odd since not geographic (?). Issue #851, b
  5. ps=btruncate.ps
  6. cat << EOF > tpoly.xy
  7. 0 0
  8. 200 0
  9. 200 200
  10. 0 200
  11. 0 0
  12. EOF
  13. gmt spatial tpoly.xy -C -R0/10/0/10 > clipped.txt
  14. gmt psbasemap -R-5/205/-5/205 -JX6i -P -Baf -D0/10/0/10 -F+p3p,gray -K -Xc > $ps
  15. gmt psxy -R -J tpoly.xy -W1p -O -K >> $ps
  16. gmt psxy -R -J clipped.txt -W0.25p,red -O >> $ps
Tip!

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

Comments

Loading...