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

grdclip.sh 612 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. #
  3. # Check clipping of grids on a global conic plot
  4. ps=grdclip.ps
  5. plot1 () {
  6. gmt grdmath $1 -fg -I10 XNORM YNORM 0.2 MUL ADD = t.nc
  7. gmt grdedit -T t.nc
  8. gmt grdimage t.nc -nn -Ct.cpt -Q -R0/360/30/70 -J -E50 -O $2
  9. }
  10. plot2 () {
  11. gmt grdmath $1 -fg -I10 XNORM YNORM 0.2 MUL ADD = t.nc
  12. gmt grdimage t.nc -nn -Ct.cpt -Q -R0/360/30/70 -J -E50 -O $2
  13. }
  14. gmt makecpt -Crainbow -T-1.2/1.2/0.2 > t.cpt
  15. gmt pscoast -R0/360/30/70 -JL180/50/40/60/6i -Gred -Dc -B30g30 -P -K > $ps
  16. plot2 -R340/380/50/70 -K >> $ps
  17. plot2 -R-20/20/30/50 -K >> $ps
  18. plot1 -R-120/-80/40/60 -K >> $ps
  19. plot1 -R160/200/40/60 >> $ps
Tip!

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

Comments

Loading...