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

daynight.sh 461 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. #!/usr/bin/env bash
  2. # Test the DAYNIGHT operator
  3. ps=daynight.ps
  4. gmt grdmath -Rd -I1 30 20 0 DAYNIGHT = a.grd
  5. gmt grdmath -Rd -I1 30 20 5 DAYNIGHT = b.grd
  6. echo "0 black 1 white" > t.cpt
  7. gmt grdimage a.grd -Ct.cpt -Baf -B+t"Transition = 0" -P -K -JQ6.5i > $ps
  8. echo 30 20 | gmt psxy -R -J -O -K -Sk@sunglasses/1.5c >> $ps
  9. gmt grdimage b.grd -Ct.cpt -Baf -B+t"Transition = 5" -J -O -K -Y5i >> $ps
  10. echo 30 20 | gmt psxy -R -J -O -Sc0.25c -Sk@sunglasses/1.5c >> $ps
Tip!

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

Comments

Loading...