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

imgtrack.sh 449 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 various ways of extracting and plotting IMG grids
  3. ps=imgtrack.ps
  4. IMG=@topo.8.4.img
  5. # Sample an img file along a track directly
  6. gmt makecpt -Crainbow -T-8000/0 > t.cpt
  7. gmt grdtrack -G${IMG},1,1 -R180/200/40/50 -EBL/TR > m.txt
  8. gmt psxy -R -JM6i -P -Baf -Sc0.1c -Ct.cpt m.txt -K > $ps
  9. gmt img2grd $IMG -R -T1 -S1 -Gimg_g.nc
  10. gmt grdtrack -Gimg_g.nc -EBL/TR > g.txt
  11. gmt psxy -R -J -O -Baf -Sc0.1c -Ct.cpt g.txt -Y5i >> $ps
Tip!

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

Comments

Loading...