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

pattern.sh 457 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
  1. #!/usr/bin/env bash
  2. #
  3. ps=pattern.ps
  4. gmt set FONT_ANNOT_PRIMARY 10p
  5. cat << EOF > patt.cpt
  6. 0 p144/9 5 -
  7. 5 gray 10 gray
  8. 10 p144/5 15 -
  9. 15 pink 20 pink
  10. 20 p144/30 25 -
  11. 25 black 30 black
  12. EOF
  13. gmt grdmath -R-5/5/-5/5 -I1 0 0 CDIST 2.5 DIV DUP MUL NEG EXP 30 MUL = t.nc
  14. gmt grdview t.nc -JX5i -P -Xc -Yc -K -Cpatt.cpt -Qs -B1 > $ps
  15. gmt psscale -Cpatt.cpt -Dx2.5i/-0.5i+w4.5i/0.25i+h+jTC -O -K >> $ps
  16. gmt psscale -Cpatt.cpt -Dx5.5i/2.5i+w4.5i/0.25i+jML -O >> $ps
Tip!

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

Comments

Loading...