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

timecpt_noinc.sh 516 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
  1. #!/usr/bin/env bash
  2. # Test makecpt with time array lacking an increment value
  3. cat << EOF > cpt-true.cpt
  4. 2012-06-29T08:00:00 0/0/127 2012-08-27T20:22:30 blue L
  5. 2012-08-27T20:22:30 blue 2012-12-24T21:07:30 cyan L
  6. 2012-12-24T21:07:30 cyan 2013-04-22T21:52:30 yellow L
  7. 2013-04-22T21:52:30 yellow 2013-08-19T22:37:30 red L
  8. 2013-08-19T22:37:30 red 2013-10-18T11:00:00 127/0/0 B
  9. EOF
  10. gmt makecpt -Cjet -T2012-06-29T08:00:00/2013-10-18T11:00:00 -N > cpt-test.cpt
  11. diff cpt-true.cpt cpt-test.cpt --strip-trailing-cr >> fail
Tip!

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

Comments

Loading...