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

ex04.bat 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
  1. REM GMT EXAMPLE 04
  2. REM
  3. REM Purpose: 3-D mesh and color plot of Hawaiian topography and geoid
  4. REM GMT modules: grdcontour, grdimage, grdview, basemap, coast, text, makecpt
  5. REM DOS calls: echo
  6. REM
  7. gmt begin
  8. gmt figure ex04
  9. gmt makecpt -C255,100 -T-10/10/10 -N
  10. gmt grdcontour @HI_geoid_04.nc -R195/210/18/25 -Jm1c -p60/30 -C1 -A5+o -Gd10c
  11. gmt coast -p -B2 -BNEsw -Gblack -TdjBR+o0.3c+w3c+l
  12. gmt grdview @HI_topo_04.nc -R195/210/18/25/-6/4 -Jz0.8c -p -C -N-6+glightgray -Qsm -B2 -Bz2+l"Topo (km)" -BneswZ+t"H@#awaiian@# R@#idge@#" -Y5c --FONT_TITLE=50p,ZapfChancery-MediumItalic --MAP_TITLE_OFFSET=-4c
  13. gmt figure ex04c
  14. gmt grdimage @HI_geoid_04.nc -I+a0+nt0.75 -R195/210/18/25 -JM15c -p60/30 -C@geoid_04.cpt -X1.25i -Y1.25i
  15. gmt coast -p -B2 -BNEsw -Gblack
  16. gmt basemap -p -TdjBR+o0.3c+w3c+l --COLOR_BACKGROUND=red --FONT=red --MAP_TICK_PEN_PRIMARY=thinner,red
  17. gmt colorbar -p240/30 -DJBC+o0/1c+w13c/0.75c+h -C@geoid_04.cpt -I -Bx2+l"Geoid (m)"
  18. gmt grdview @HI_topo_04.nc -I+a0+nt0.75 -R195/210/18/25/-6/4 -JZ8c -p60/30 -C@topo_04.cpt -N-6+glightgray -Qc100 -B2 -Bz2+l"Topo (km)" -BneswZ+t"H@#awaiian@# R@#idge@#" -Y5c --FONT_TITLE=50p,ZapfChancery-MediumItalic --MAP_TITLE_OFFSET=-4c
  19. gmt end show
Tip!

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

Comments

Loading...