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

GMT_registration.sh 470 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
22
23
  1. #!/usr/bin/env bash
  2. gmt begin GMT_registration
  3. # Gridline registration
  4. gmt plot -R0/3/0/3 -JX2.5i/1.25i -B1g1 -Bwesn -Wthinner -L -Glightred << EOF
  5. 0.5 1.5
  6. 1.5 1.5
  7. 1.5 2.5
  8. 0.5 2.5
  9. EOF
  10. gmt grdmath -R0/3/0/3 -I1 0 = tt.nc
  11. gmt grd2xyz tt.nc | gmt plot -Sc0.12i -N -G0
  12. # Pixel registration
  13. gmt plot -B1g1 -Bwesn -W0p -L -Glightred -X2.75i << EOF
  14. 1 1
  15. 2 1
  16. 2 2
  17. 1 2
  18. EOF
  19. gmt grdmath -R0/3/0/3 -I1 -r 0 = tt.nc
  20. gmt grd2xyz tt.nc | gmt plot -Sc0.12i -Gblack
  21. rm tt.nc
  22. gmt end show
Tip!

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

Comments

Loading...