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

showregions.sh 668 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
  1. #!/usr/bin/env bash
  2. # Testing grdfill with -L to indicate regions of NaNs
  3. ps=showregions.ps
  4. # Get topo for Hawaiian Islands and set data on land to NaN
  5. gmt grdclip @earth_relief_10m -R199:30/206/18/23 -Sa0/NaN -Gislands.nc
  6. gmt makecpt -Csealand -T-5000/5000 > t.cpt
  7. # Determine all holes and get rectangular polygons for each one and plot
  8. gmt grdfill islands.nc -Lp > t.txt
  9. gmt grdimage islands.nc -JQ6i -Ct.cpt -P -Baf -BWSne -Xc -K -Y0.75i > $ps
  10. gmt grdimage islands.nc -J -Ct.cpt -O -K -Baf -BWSne -Y5.15i >> $ps
  11. gmt psxy -R -J -O -K -A -W3p,white t.txt >> $ps
  12. gmt psxy -R -J -O -K -A -W1p t.txt >> $ps
  13. gmt pstext -R -J -O -F+f24p+cTR+t"-Lp" -Dj0.2i -Gwhite >> $ps
Tip!

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

Comments

Loading...