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

rgb.sh 539 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
  1. #!/usr/bin/env bash
  2. # Drape image via three r,g,b grids on top of 3-D topo relief
  3. # testing both old and new syntax
  4. ps=rgb.ps
  5. gmt grdmath -R0/6/0/6 -I0.1 X 6 DIV 255 MUL = r.nc
  6. gmt grdmath -R0/6/0/6 -I0.1 Y 6 DIV 255 MUL = g.nc
  7. gmt grdmath -R0/6/0/6 -I0.1 3 3 CDIST DUP UPPER DIV 255 MUL = b.nc
  8. gmt grdcut @earth_relief_06m -R0/6/0/6 -Gtopo.nc
  9. gmt grdview topo.nc -I+ -JM4i -JZ2i -p145/35 -Gr.nc,g.nc,b.nc -Baf -BWSne -Qi -P -K -X1.5i -Y0.75i > $ps
  10. gmt grdview topo.nc -I+ -J -JZ -p -Gr.nc -Gg.nc -Gb.nc -Baf -BWSne -Qi -O -Y4.75i >> $ps
Tip!

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

Comments

Loading...