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

splinefill.sh 530 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
  1. #!/usr/bin/env bash
  2. # Testing grdfill with spline infill of NaN areas
  3. gmt begin splinefill 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 -H > t.cpt
  7. # Now replace NaN holes with cubic spline solutions
  8. gmt grdfill islands.nc -As -Gnew.nc
  9. gmt grdimage islands.nc -JQ6i -Ct.cpt -B -BWSne -Xc -Y0.75i
  10. gmt grdimage new.nc -Ct.cpt -B -BWSne -Y5.15i
  11. gmt text -F+f24p+cTR+t"-As" -Dj0.2i -Gwhite
  12. gmt end show
Tip!

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

Comments

Loading...