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

atruncate.sh 543 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 entirely inside the polygon, so should result in the -R
  4. # pollygon outline as answer. Cartesian case. Issue #851,a
  5. ps=atruncate.ps
  6. cat << EOF > tpoly.xy
  7. -300 -3500
  8. -200 -800
  9. 400 -780
  10. 500 -3400
  11. -300 -3500
  12. EOF
  13. gmt spatial tpoly.xy -C -R0/100/-3100/-3000 > clipped.txt
  14. gmt psbasemap -R-500/600/-3600/-700 -JX6i/9i -P -Baf -D0/100/-3100/-3000 -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...