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

imgmap.sh 783 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
21
22
23
24
25
26
27
  1. #!/bin/bash
  2. #
  3. # $Id$
  4. ps=imgmap.ps
  5. IMG=topo.15.1.img
  6. if [ -f /tmp/gmt/$IMG ]; then # use one placed/linked from /tmp
  7. IMG=/tmp/gmt/topo.15.1.img
  8. else
  9. OK=`gmt gmtwhich -C $IMG`
  10. if [ $OK = N ]; then
  11. echo "File $IMG not available for testing imgmap.sh"
  12. exit
  13. fi
  14. fi
  15. # Get merc grid
  16. gmt img2grd $IMG -R180/200/-5/5 -I1m -T1 -D -S1 -Gimg.nc -M
  17. gmt makecpt -Crainbow -T-8000/0/500 -Z > t.cpt
  18. gmt grdimage img.nc -Jx0.25i -Ct.cpt -P -K -Xc > $ps
  19. gmt psbasemap -R -Jm0.25i -Ba -BWSne -O -K >> $ps
  20. # Get geo grid
  21. gmt img2grd $IMG -R -I1m -T1 -D -S1 -Gimg.nc
  22. gmt grdimage img.nc -Jm -Ct.cpt -O -K -Ba -BWSne -Y3.25i >> $ps
  23. # Get resampled geo grid
  24. gmt img2grd $IMG -R -I1m -T1 -D -S1 -Gimg.nc -E
  25. gmt grdimage img.nc -Jm -Ct.cpt -O -K -Ba -BWSne -Y3.25i >> $ps
  26. gmt psxy -R -J -O -T >> $ps
Tip!

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

Comments

Loading...