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

resample.sh 681 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. # Test to ensure https://forum.generic-mapping-tools.org/t/grdsample-problem-in-gmt-6-0/552/14 is fixed
  3. ps=resample.ps
  4. gmt grdmath -R0/360/-90/90 -I0.25 X = t.grd
  5. gmt grdsample -R-50/50/25/50 -fg t.grd -Gsample1.grd
  6. gmt grdsample -R50/150/25/50 -fg t.grd -Gsample2.grd
  7. gmt grdsample -R310/410/25/50 -fg t.grd -Gsample3.grd
  8. gmt makecpt -Chot -T0/360 > t.cpt
  9. gmt grdimage t.grd -JQ180/15c -P -Baf -BWSne -Ct.cpt -K -Y2c -X3c > $ps
  10. gmt grdimage sample2.grd -J -Baf -BWSne -Ct.cpt -O -K -Y9.3c >> $ps
  11. gmt grdimage sample1.grd -R-50/50/25/50 -J -Baf -BWSne -Ct.cpt -O -K -Y5.3c >> $ps
  12. gmt grdimage sample3.grd -R310/410/25/50 -J -Baf -BWSne -Ct.cpt -O -Y5.3c >> $ps
Tip!

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

Comments

Loading...