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

time_testing_5.sh 854 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
  1. #!/usr/bin/env bash
  2. #
  3. #
  4. # This script runs some simple test to verify the that new time scheme
  5. # has been implemented successfully
  6. # Test 5:
  7. # We plot a data set with gmt psxy in two ways: The bottom plot is based on
  8. # calendar data whereas the upper plot is based on time relative to the
  9. # users epoch. We use the same data as before to generate the absolute
  10. # coordinates using the Apollo 11 epoch.
  11. ps=time_testing_5.ps
  12. gmt sample1d -I0.5 << EOF > tt5.d
  13. 0 0
  14. 4 1
  15. EOF
  16. gmt convert tt5.d -fi0t -fo0T --TIME_EPOCH=1969-07-21T02:56:00 --TIME_UNIT=d \
  17. | gmt psxy -R1969-07-18T/1969-07-28T/-0.1/1.1 -JX9T/6 -Bpxa7Rf1d -Bpy0.2 -Bsxa1O -Sc0.15 -Gred --FORMAT_DATE_MAP="-o yyyy" --FONT_ANNOT_PRIMARY=9p -K > $ps
  18. gmt psxy tt5.d -R -JX9t/6 --TIME_EPOCH=1969-07-21T02:56:00 -S+0.25 --TIME_UNIT=d --FORMAT_DATE_MAP="-o yyyy" --FONT_ANNOT_PRIMARY=9p -O >> $ps
Tip!

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

Comments

Loading...