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

simple-gmt-tests.sh 749 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
25
26
27
28
29
30
31
  1. #!/usr/bin/env bash
  2. #
  3. # Run some simple GMT commands
  4. #
  5. set -x -e
  6. # Check GMT version
  7. gmt --version
  8. # Check GMT configuration
  9. gmt-config --all
  10. # Check GMT defaults
  11. gmt defaults -Vd
  12. # Check GMT classic mode, GSHHG and DCW
  13. gmt pscoast -R0/10/0/10 -JM6i -Ba -Ggray -ENG+p1p,blue -P -Vd > test.ps
  14. # Check GMT modern mode, GSHHG and DCW
  15. if [ "${RUNNER_OS}" == "Windows" ]; then export GMT_SESSION_NAME=$$; fi
  16. gmt begin && gmt coast -R0/10/0/10 -JM6i -Ba -Ggray -ENG+p1p,blue -Vd && gmt end
  17. if [ "${RUNNER_OS}" == "Windows" ]; then unset GMT_SESSION_NAME; fi
  18. # Check remote file and modern one-liner
  19. gmt grdimage @earth_relief_01d -JH10c -Baf -pdf map
  20. # Check supplemental modules
  21. gmt earthtide -T2018-06-18T12:00:00 -Gsolid_tide_up.grd
  22. set +x +e
Tip!

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

Comments

Loading...