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

geoholes.sh 849 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
  1. #!/usr/bin/env bash
  2. # Test grdmask with search radius around some points
  3. # Made because of http://gmt.soest.hawaii.edu/boards/1/topics/5379
  4. ps=geoholes.ps
  5. # 20 degree radii for all, gridline-registered
  6. gmt grdmask -Gmask.grd -I1 -R0/360/-90/90 -N1/1/NaN -S20d << EOF
  7. 0 40
  8. 355 -40
  9. 133 -5
  10. -63 -10
  11. EOF
  12. gmt makecpt -Cjet -T0/10 > t.cpt
  13. gmt grdimage mask.grd -JH0/6i -Ct.cpt -Baf -P -K -Xc -Y0.5i > $ps
  14. # Variable degree radii for all, gridline-registered
  15. gmt grdmask -Gmask.grd -I1 -R0/360/-90/90 -N1/1/NaN -Szd << EOF
  16. 0 40 20
  17. 355 -40 15
  18. 133 -5 30
  19. -63 -10 10
  20. EOF
  21. gmt grdimage mask.grd -JH0/6i -Ct.cpt -Baf -O -K -Y3.25i >> $ps
  22. # Variable km radii for all, pixel-registered
  23. gmt grdmask -Gmask.grd -I1 -R0/360/-90/90 -N1/1/NaN -Szk -r << EOF
  24. 0 40 2000
  25. 355 -40 1500
  26. 133 -5 3000
  27. -63 -10 1000
  28. EOF
  29. gmt grdimage mask.grd -JH0/6i -Ct.cpt -Baf -O -Y3.25i >> $ps
Tip!

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

Comments

Loading...