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

clipping4.sh 623 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. # GMT_KNOWN_FAILURE
  3. # Check ellipse clipping and filling/outline
  4. ps=clipping4.ps
  5. cat << EOF > t.txt
  6. 170 78 4000
  7. 190 -78 4000
  8. 180 0 5000
  9. EOF
  10. gmt psxy -R0/360/-75/75 -JM7i -P -Baf -BWSne -Xc -SE- -Gred -W10p,blue t.txt > $ps
  11. # To create the desired plot I had to fake it this way to make sure the above will fail
  12. #dy=`echo 0 -75 | mapproject -R0/360/-77/77 -JM7i -Di -o1`
  13. #gmt psclip -R0/360/-75/75 -JM7i -P -Xc -T -K > $ps
  14. #gmt psxy -R0/360/-77/77 -J -O -K -SE- -Gred -W10p,blue t.txt -Y-${dy}i >> $ps
  15. #gmt psclip -R -J -O -K -C >> $ps
  16. #gmt psbasemap -R0/360/-75/75 -J -O -Baf -BWSne -Y${dy}i >> $ps
Tip!

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

Comments

Loading...