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

constfill.sh 542 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. #!/usr/bin/env bash
  2. # Testing grdfill with constant infill of NaN areas
  3. ps=constfill.ps
  4. # Get topo for Hawaiian Islands and set data on land to NaN
  5. gmt grdclip @earth_relief_05m -R199:30/206/18/23 -Sa0/NaN -Gislands.nc
  6. gmt makecpt -Csealand -T-5000/5000 > t.cpt
  7. # Now replace NaN holes with 4000 m
  8. gmt grdfill islands.nc -Ac4000 -Gnew.nc
  9. gmt grdimage islands.nc -JQ6i -Ct.cpt -P -Baf -BWSne -Xc -K -Y0.75i > $ps
  10. gmt grdimage new.nc -J -Ct.cpt -O -K -Baf -BWSne -Y5.15i >> $ps
  11. gmt pstext -R -J -O -F+f24p+cTR+t"-Ac4000" -Dj0.2i -Gwhite >> $ps
Tip!

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

Comments

Loading...