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

custxlabel.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  1. #!/usr/bin/env bash
  2. # Test Cartesian, relative and absolute time axis custom annotations
  3. # As of 6/16/2016 the relative time example fails. I faked the orig PS
  4. # by running the absolute time part twice (the commented out commands).
  5. # Once the bug is fixed we will remove the commented-out versions
  6. # 7/15/2016: Test now passes - I left the comments in there.
  7. ps=custxlabel.ps
  8. # Cartesian
  9. cat << EOF > m.txt
  10. 0 afg zero
  11. 1.61803 afg @~j@~
  12. 2.71828 afg e
  13. 3.1415926 afg @~p@~
  14. 5 f
  15. 6.283186 afg @~2p@~
  16. EOF
  17. gmt psbasemap -R-1/7/-1/7 -JX6i/2.75i -P -Bxcm.txt -Byafg -BWSne -K -Xc > $ps
  18. # Time axis relative time
  19. cat << EOF > m.txt
  20. 10 a p@-1@-
  21. 40 afg p@-2@-
  22. 50 f
  23. 81 a p@-3@-
  24. EOF
  25. gmt psbasemap -R2013-06-01T/2013-08-31T/-10/10 -JX6it/2.75i --TIME_EPOCH=2013-05-31T --TIME_UNIT=d -Byafg -Bxcm.txt -BWSne -O -K -Y3.25i >> $ps
  26. #cat << EOF > m.txt
  27. #2013-06-10T a p@-1@-
  28. #2013-07-10T afg p@-2@-
  29. #2013-07-20T f
  30. #2013-08-20T a p@-3@-
  31. #EOF
  32. #gmt psbasemap -R2013-06-01T/2013-08-31T/-10/10 -JX6iT/2.75i -Byafg -Bxcm.txt -BWSne -O -K -Y3.25i >> $ps
  33. # Time axis absolute time
  34. cat << EOF > m.txt
  35. 2013-06-10T a p@-1@-
  36. 2013-07-10T afg p@-2@-
  37. 2013-07-20T f
  38. 2013-08-20T a p@-3@-
  39. EOF
  40. gmt psbasemap -R2013-06-01T/2013-08-31T/-10/10 -JX6iT/2.75i -Byafg -Bxcm.txt -BWSne -O -Y3.25i >> $ps
Tip!

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

Comments

Loading...