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

mask.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
  1. #!/usr/bin/env bash
  2. #
  3. # Test colorizing 1-bit images in grdimage
  4. ps=mask.ps
  5. # Created mask.nc this way, now in git
  6. # gmt grdmath -R0/20/0/20 -I1 -r 0 1 RAND RINT = mask.nc=nb
  7. echo "0 white" > t.cpt
  8. echo "1 black" >> t.cpt
  9. gmt grdimage mask.nc -Ct.cpt -JX2.5i -Xc -Gorange+b -Baf -BWSne -K -P > $ps
  10. gmt grdimage mask.nc -Ct.cpt -J -Y3i -Baf -BWSne -O -K >> $ps
  11. gmt grdimage mask.nc -Ct.cpt -J -Y3i -Gorange+f -Baf -BWSne -O >> $ps
Tip!

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

Comments

Loading...