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

ex27.bat 922 B

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
  1. REM GMT EXAMPLE 27
  2. REM
  3. REM Purpose: Illustrates how to plot Mercator img grids
  4. REM GMT modules: makecpt, grdimage, grdinfo, coast, colorbar
  5. REM
  6. gmt begin ex27
  7. REM Gravity in tasman_grav.nc is in 0.1 mGal increments and the grid
  8. REM is already in projected Mercator x/y units.
  9. REM Make a suitable cpt file for mGal
  10. gmt makecpt -T-120/120 -Crainbow
  11. REM Since this is a Mercator grid we use a linear projection
  12. gmt grdimage @tasman_grav.nc=ns+s0.1 -I+d -Jx0.6c
  13. REM Then use gmt coast to plot land; get original -R from grid img remark
  14. REM and use Mercator gmt projection with same scale as above on a spherical Earth
  15. gmt grdinfo @tasman_grav.nc -Ii > R.txt
  16. set /p R=<R.txt
  17. gmt coast %R% -Jm0.6c -B -BWSne -Gblack --PROJ_ELLIPSOID=Sphere -Cwhite -Dh+ --FORMAT_GEO_MAP=dddF
  18. REM Put a color legend in top-left corner of the land mask
  19. gmt colorbar -DjTL+o1c+w5c/0.4c -Bx -By+lmGal -I -F+gwhite+p1p
  20. gmt end show
Tip!

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

Comments

Loading...