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

clipping7.sh 774 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
26
27
28
29
30
31
32
  1. #!/usr/bin/env bash
  2. ps=clipping7.ps
  3. cat << EOF > badpol.txt
  4. > -Gred
  5. 210 -46
  6. 210 -51
  7. 200 -51
  8. 200 -46
  9. 210 -46
  10. > -Gblue
  11. 160 -46
  12. 160 -51
  13. 177 -51
  14. 177 -46
  15. 160 -46
  16. EOF
  17. scl=`gmt math -Q 6 215 170 SUB DIV =`
  18. scl=`gmt math -Q 6 215 155 SUB DIV =`
  19. xr=`gmt math -Q 205 155 SUB $scl MUL =`
  20. xl=`gmt math -Q 170 155 SUB $scl MUL =`
  21. gmt psxy -R0/8/0/10 -Jx1i -P -K -W0.25p,- << EOF > $ps
  22. >
  23. $xr 0
  24. $xr 8.25
  25. >
  26. $xl 0
  27. $xl 8.25
  28. EOF
  29. gmt psxy badpol.txt -R170/205/-52/-45 -Jm${scl}i -Gred -Baf -BWSne -O -A -K -X${xl}i >> $ps
  30. gmt psxy badpol.txt -R155/215/-52/-45 -Jm -Gred -Baf -BWSne -O -K -A -Y2.25i -X-${xl}i >> $ps
  31. gmt psxy badpol.txt -R170/205/-52/-45 -Jm -Gred -Baf -BWSne -O -K -Y2.25i -X${xl}i >> $ps
  32. gmt psxy badpol.txt -R155/215/-52/-45 -Jm -Gred -Baf -BWSne -O -Y2.25i -X-${xl}i >> $ps
Tip!

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

Comments

Loading...