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

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

Comments

Loading...