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

rectclip.sh 807 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
  1. #!/usr/bin/env bash
  2. # Test case for line far outside a small region. First point
  3. # is > 180 points away so is seen as -179 away while second is
  4. # +179 away. The projected x coordinates are thus far outside
  5. # on either side, tricking the rect_clip function to compute
  6. # two crossings and drawing the line. Added new check to try
  7. # to avoid this case - monitoring to see if it is OK; see
  8. # gmt_map.c's gmt_rect_overlap function. P. Wessel 7/31/2014
  9. # There should be no lines crossing these two maps.
  10. ps=rectclip.ps
  11. cat << EOF > t.txt
  12. 107 62
  13. 105 62
  14. EOF
  15. #
  16. gmt select -R-88.9/-14.1/-58.5993313003/6.9895410772r -fg t.txt > a.txt
  17. gmt psxy -JL-73.5/-10.6/-14.16/-14.24/6i -R-88.9/-14.1/-58.5993313003/6.9895410772r -P -Ba5f1g5 -W2p,red t.txt -Xc -K > $ps
  18. gmt psxy -J -R -O -Ba5f1g5 -W2p,red a.txt -Y5i >> $ps
Tip!

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

Comments

Loading...