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

ex19.bat 1.7 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
28
29
30
31
32
33
34
35
36
37
  1. REM GMT EXAMPLE 19
  2. REM
  3. REM Purpose: Illustrates various color pattern effects for maps
  4. REM GMT modules: grdimage, grdmath, makecpt, coast, text, image, makecpt
  5. REM DOS calls: echo, rm
  6. gmt begin ex19
  7. gmt grdmath -Rd -I1 -r Y COSD 2 POW = lat.nc
  8. gmt grdmath X = lon.nc
  9. gmt makecpt -Cwhite,blue -T0,1 -Z -N -H > lat.cpt
  10. gmt makecpt -Crainbow -T-180/180 -H > lon.cpt
  11. gmt subplot begin 3x1 -Fs16c/0 -M0 -Bbltr -Rd -JI0/16c
  12. REM First make a worldmap with graded blue oceans and rainbow continents
  13. gmt grdimage lat.nc -Clat.cpt -nl -c0,0
  14. gmt coast -Dc -A5000 -Gc
  15. gmt grdimage lon.nc -Clon.cpt -nl
  16. gmt coast -Q
  17. gmt coast -Dc -A5000 -Wthinnest
  18. echo 0 20 16TH INTERNATIONAL | gmt text -F+f32p,Helvetica-Bold,red=thinner
  19. echo 0 -10 GMT CONFERENCE | gmt text -F+f32p,Helvetica-Bold,red=thinner
  20. echo 0 -30 Honolulu, Hawaii, April 1, 2020 | gmt text -F+f18p,Helvetica-Bold,green=thinnest
  21. REM Then show example of color patterns and placing a PostScript image
  22. gmt coast -Dc -A5000 -Gp86+fred+byellow+r100 -Sp@circuit.png+r100 -c1,0
  23. echo 0 30 SILLY USES OF | gmt text -F+f32p,Helvetica-Bold,lightgreen=thinner
  24. echo 0 -30 COLOR PATTERNS | gmt text -F+f32p,Helvetica-Bold,magenta=thinner
  25. gmt image -DjCM+w7.5c @GMT_covertext.eps
  26. REM Finally repeat 1st plot but exchange the colors
  27. gmt grdimage lon.nc -Clon.cpt -nl -c2,0
  28. gmt coast -Dc -A5000 -Gc
  29. gmt grdimage lat.nc -Clat.cpt -nl
  30. gmt coast -Q
  31. gmt coast -Dc -A5000 -Wthinnest
  32. echo 0 20 16TH INTERNATIONAL | gmt text -F+f32p,Helvetica-Bold,red=thinner
  33. echo 0 -10 GMT CONFERENCE | gmt text -F+f32p,Helvetica-Bold,red=thinner
  34. echo 0 -30 Honolulu, Hawaii, April 1, 2020 | gmt text -F+f18p,Helvetica-Bold,green=thinnest
  35. gmt subplot end
  36. gmt end show
  37. del lat.nc lon.nc lat.cpt lon.cpt
Tip!

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

Comments

Loading...