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

paste_pixreg_overlap.sh 820 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
  1. #!/usr/bin/env bash
  2. #
  3. # Paste overlapping pixel registered grids along X & Y
  4. ps=paste_pixreg_overlap.ps
  5. # The final grid is just f(x,y) = x*y
  6. gmt grdmath -R-15.25/15.25/-15.25/15.25 -I0.5 X Y MUL -r = lixo.nc
  7. # The 4 pieces to assemble into final grid
  8. gmt grdmath -R-15.25/0.25/-15.25/0.25 -I0.5 X Y MUL -r = lixo_x1.nc
  9. gmt grdmath -R0.25/15.25/-15.25/0.25 -I0.5 X Y MUL -r = lixo_x2.nc
  10. gmt grdmath -R-15.25/0.25/0.25/15.25 -I0.5 X Y MUL -r = lixo_y1.nc
  11. gmt grdmath -R0.25/15.25/0.25/15.25 -I0.5 X Y MUL -r = lixo_y2.nc
  12. gmt grdpaste lixo_x1.nc lixo_x2.nc -Glixo_x.nc
  13. gmt grdpaste lixo_y1.nc lixo_y2.nc -Glixo_y.nc
  14. gmt grdpaste lixo_x.nc lixo_y.nc -Glixo_xy.nc
  15. # Top is single source, bottom is assembled
  16. gmt grdcontour lixo_xy.nc -JX10c -C10 -B5 -P -K -Xc > $ps
  17. gmt grdcontour lixo.nc -J -C10 -B5 -O -Y12c >> $ps
Tip!

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

Comments

Loading...