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

paintallzs.sh 1.2 KB

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
24
25
26
  1. #!/usr/bin/env bash
  2. #
  3. # Check that gmt grd2cpt estimates correct upper/lower bounds <= z_min && >= z_max
  4. # We try lower and upper, then flip sign on grid and try min and high
  5. ps=paintallzs.ps
  6. echo "6 3 0 1" > t.txt
  7. gmt set MAP_FRAME_TYPE plain
  8. gmt sph2grd t.txt -I1 -Rg -Nm -Ggrid.nc
  9. gmt grdmath grid.nc 0.2 ADD = grid.nc
  10. gmt grd2cpt grid.nc -Cpolar -E7 -Z > t.cpt
  11. gmt grdimage grid.nc -Jx0.015id/0.01id -P -Ct.cpt -B0 -K -X1.5i -Y0.5i > $ps
  12. gmt psscale -DJRM -Ct.cpt -Rgrid.nc -Bxaf -J -O -K >> $ps
  13. gmt grd2cpt grid.nc -Cpolar -E7 -Sl -Z > t.cpt
  14. gmt grdimage grid.nc -J -Ct.cpt -B0 -O -K -Y2i >> $ps
  15. gmt psscale -DJRM -Ct.cpt -R -Bxaf -By+l"-Sl" -J -O -K >> $ps
  16. gmt grd2cpt grid.nc -Cpolar -E7 -Su -Z > t.cpt
  17. gmt grdimage grid.nc -J -Ct.cpt -B0 -O -K -Y2i >> $ps
  18. gmt psscale -DJRM -Ct.cpt -R -Bxaf -By+l"-Su" -J -O -K >> $ps
  19. gmt grdmath grid.nc NEG = grid.nc
  20. gmt grd2cpt grid.nc -Cpolar -E7 -Sm -Z > t.cpt
  21. gmt grdimage grid.nc -J -Ct.cpt -B0 -O -K -Y2i >> $ps
  22. gmt psscale -DJRM -Ct.cpt -R -Bxaf -By+l"-Sm" -J -O -K >> $ps
  23. gmt grd2cpt grid.nc -Cpolar -E7 -Sh -Z > t.cpt
  24. gmt grdimage grid.nc -J -Ct.cpt -B0 -O -K -Y2i >> $ps
  25. gmt psscale -DJRM -Ct.cpt -R -Bxaf -By+l"-Sh" -J -O >> $ps
Tip!

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

Comments

Loading...