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

polarhole.sh 796 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
  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=polarhole.ps
  5. # 31 unit radius Cartesian with periodic BC in x
  6. gmt grdmask -Gmask_c.grd -I1 -R0/360/-90/90 -N1/1/NaN -S31 -n+bpx << EOF
  7. 0 39
  8. EOF
  9. # 31 degree radius geographic
  10. gmt grdmask -Gmask_g.grd -I1 -R0/360/-90/90 -N1/1/NaN -S31d << EOF
  11. 0 39
  12. EOF
  13. gmt makecpt -Cjet -T0/10 > t.cpt
  14. gmt grdimage mask_c.grd -R-180/180/-90/90 -JX5.5id/2.75id -Ct.cpt -Baf -BWSnE -P -K -Xc -Y0.75i --MAP_FRAME_TYPE=plain > $ps
  15. gmt grdimage mask_c.grd -R0/360/0/80 -JP2.75i+a -Ct.cpt -Bafg -O -K -X-0.75i -Y3.25i >> $ps
  16. gmt grdimage mask_g.grd -R0/360/0/80 -JP2.75i+a -Ct.cpt -Bafg -O -K -X3.75i >> $ps
  17. gmt grdimage mask_g.grd -JQ0/5.5i -Ct.cpt -Baf -O -X-3i -Y3.5i >> $ps
Tip!

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

Comments

Loading...