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

gfilter.sh 776 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
  1. #!/bin/bash
  2. # $Id$
  3. # Testing gmt grdfft
  4. ps=gfilter.ps
  5. gmt set GMT_FFT kiss
  6. topo="${src:-.}"/../../doc/examples/ex38/topo.nc
  7. # Do a 100 km Gaussian filter on some topography
  8. gmt grdfft ${topo} -fg -F-/100000 -Glow.nc -N+l
  9. gmt makecpt -Crainbow -T0/1700 > t.cpt
  10. gmt grdgradient ${topo} -Nt1 -fg -A45 -Gitopo.nc
  11. gmt grdgradient low.nc -Nt1 -fg -A45 -Gilow.nc
  12. gmt grdimage ${topo} -Iitopo.nc -Ct.cpt -JM6i -Y6i -Xc -K -P -B5 -BWSne > $ps
  13. echo "315 -10 Original" | gmt pstext -R${topo} -J -O -K -F+jTR+f14p -T -Gwhite -W1p -Dj0.1i >> $ps
  14. gmt grdimage low.nc -Iilow.nc -Ct.cpt -J -Y-4.6i -K -O -B5 -BWSne >> $ps
  15. echo "315 -10 100 km Gaussian" | gmt pstext -R -J -O -K -F+jTR+f14p -T -Gwhite -W1p -Dj0.1i >> $ps
  16. gmt psscale -D3i/-0.4i+w5i/0.15i+h+jTC+e+n -O -Ct.cpt -B500 >> $ps
Tip!

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

Comments

Loading...