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

twoblobs.sh 621 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
  1. #!/usr/bin/env bash
  2. # Test script demonstrating problem discussed in message #7065 [Sabin].
  3. # grdmask does not create the mask for the polygon in the W hemisphere (?)
  4. ps=twoblobs.ps
  5. gmt makecpt -T0,1,2 -Cwhite,red > t.cpt
  6. cat << EOF > two.txt
  7. > I straddle Greenwhich
  8. 2 40
  9. 10 40
  10. 10 35
  11. 1 35
  12. -5 35
  13. -5 40
  14. 2 40
  15. > I am in the south Pacific
  16. -135 -20
  17. -125 -20
  18. -125 -30
  19. -135 -30
  20. -135 -20
  21. EOF
  22. gmt psxy -R-180/180/-60/60 -JM6i -P -Bafg -B+t"Plot polygons with psxy" -K two.txt -Gred > $ps
  23. gmt grdmask -R two.txt -Gout.nc -N0/1/1 -V -I20k
  24. gmt grdimage -R -J -Ct.cpt out.nc -Bafg -B+t"Plot polygons via grdmask/image" -O -Y5i >> $ps
Tip!

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

Comments

Loading...