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

filtersample.sh 431 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. ps=filtersample.ps
  3. if [[ ${HAVE_GLIB_GTHREAD} =~ TRUE|ON ]]; then
  4. _thread_opt=-x+a
  5. fi
  6. echo "0.5 0.5 1" | gmt xyz2grd -di0 -I0.1 -An -Gtemp.grd -R0/1/0/1
  7. gmt grdfilter temp.grd -Gtemp2.grd -R0/1/0/1 -I0.01 -D0 -Fg0.5 ${_thread_opt}
  8. gmt grd2cpt temp2.grd -E100 -D -Cjet > sn.cpt
  9. gmt grdimage temp2.grd -Baf -BWSne -P -JX4i -K -Csn.cpt -Xc > $ps
  10. gmt grdimage temp.grd -Baf -BWSne -J -O -Csn.cpt -Y5i >> $ps
Tip!

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

Comments

Loading...