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

oneincshift.sh 495 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. # GMT_KNOWN_FAILURE
  3. # Global pixel grids offset by half a grid increment fails
  4. # The same for gridline-registered grids work.
  5. # Here, q0.nc is fine but q.nc is shifted by 1/2 dx.
  6. ps=oneincshift.ps
  7. gmt grdmath -Rg -I1 -r Y COSD 20 MUL X SIND MUL = q0.nc
  8. gmt grdedit -S -R-0:30/359:30/-90/90 q0.nc -Gq.nc -V
  9. gmt makecpt -Chaxby -T-20/20/2 > sst.cpt
  10. gmt grdimage q0.nc -JG135/45/90/4.5i -B60g15 -Csst.cpt -P -K -Xc > $ps
  11. gmt grdimage q.nc -J -B60g15 -Csst.cpt -O -Y4.75i >> $ps
Tip!

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

Comments

Loading...