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

ex39.bat 1.3 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. REM GMT EXAMPLE 39
  2. REM
  3. REM Purpose: Illustrate evaluation of spherical harmonic coefficients
  4. REM GMT modules: colorbar, text, makecpt, grdimage, sph2grd
  5. REM
  6. gmt begin ex39
  7. REM Evaluate the first 180, 90, and 30 order/degrees of Venus spherical
  8. REM harmonics topography model, skipping the L = 0 term (radial mean).
  9. REM File truncated from http://www.ipgp.fr/~wieczor/SH/VenusTopo180.txt.zip
  10. REM Wieczorek, M. A., Gravity and topography of the terrestrial planets,
  11. REM Treatise on Geophysics, 10, 165-205, doi:10.1016/B978-044452748-6/00156-5, 2007
  12. gmt sph2grd @VenusTopo180.txt -I1 -Rg -Ng -Gv1.nc -F1/1/25/30
  13. gmt sph2grd @VenusTopo180.txt -I1 -Rg -Ng -Gv2.nc -F1/1/85/90
  14. gmt sph2grd @VenusTopo180.txt -I1 -Rg -Ng -Gv3.nc -F1/1/170/180
  15. gmt grd2cpt v3.nc -Crainbow -E
  16. gmt grdimage v1.nc -I+a45+nt0.75 -JG90/30/12c -Bg -X7.5c
  17. echo 10 11 L = 30 | gmt text -R0/12/0/12 -Jx1c -Dj0.5c -F+f16p+jLM -N
  18. gmt colorbar --FORMAT_FLOAT_MAP="%%'g" -Dx3c/-0.5c+jTC+w13c/0.25c+h -Bxaf -By+lm
  19. gmt grdimage v2.nc -I+a45+nt0.75 -JG -Bg -X-3c -Y5c
  20. echo 10 11 L = 90 | gmt text -R0/12/0/12 -Jx1c -Dj0.5c -F+f16p+jLM -N
  21. gmt grdimage v3.nc -I+a45+nt0.75 -JG -Bg -X-3c -Y5c
  22. echo 10 11 L = 180 | gmt text -R0/12/0/12 -Jx1c -Dj0.5c -F+f16p+jLM -N
  23. echo 9 13 Venus Spherical Harmonic Model | gmt text -F+f24p+jCM -N
  24. del v?.nc
  25. gmt end show
Tip!

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

Comments

Loading...