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

mismatch.sh 702 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
20
21
  1. #!/usr/bin/env bash
  2. # Make sure the read region includes all nodes needed for sampling write region
  3. gmt begin mismatch ps
  4. gmt grdmath -R1/7/0/6 -I1 X Y MUL = t.grd
  5. gmt grdcontour t.grd -W0.25p,blue -C1 -Jx1i -Bafg1 -B+t"grdsample wesn_i (blue) and wesn_o (red) regions"
  6. gmt grd2xyz t.grd | gmt plot -Sc0.25c -Gblue -N
  7. gmt grdmath -R2.55/5.19/1.1/3.2 -I0.33/0.42 X Y MUL = t.grd
  8. gmt grdcontour t.grd -C1 -W0.5p,red
  9. gmt grd2xyz t.grd | gmt plot -Ss0.1c -Gred
  10. gmt grdinfo t.grd -Ib | gmt plot -W0.25p,red
  11. gmt plot -W2p,blue -L <<- EOF
  12. 2 1
  13. 6 1
  14. 6 4
  15. 2 4
  16. EOF
  17. gmt text -F+f16p -Gwhite -D0/0.5c <<- EOF
  18. 4 4 Subset R = 2/6/1/4 I = 1
  19. 3.87 3.2 R = 2.55/5.19/1.1/3.2 I = 0.33/0.42
  20. EOF
  21. gmt end show
Tip!

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

Comments

Loading...