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.sh 638 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
  1. #!/usr/bin/env bash
  2. # Test makecpt and psscale with calendar time axis as x or y
  3. ps=timecpt.ps
  4. gmt set FORMAT_DATE_MAP "o" FORMAT_TIME_PRIMARY_MAP Abbrev
  5. gmt makecpt -T2017T/2018T/1o -Cjet > t.cpt
  6. gmt psxy -R2017-01-01T/2018-01-01T/10000/40000 @HI_arrivals_2017.txt -JX6iT/3.5i -Ct.cpt -i0,1,0 -Sc0.1c -BWsNe -P -Bxa1Og1o -Byafg -K -Xc -Y1.5i > $ps
  7. gmt psscale -Ct.cpt -DJBC -O -K -R -J -Bxa1Og1o >> $ps
  8. gmt psxy -R10000/40000/2017-01-01T/2018-01-01T @HI_arrivals_2017.txt -JX6i/3.5iT -Ct.cpt -i1,0,0 -Sc0.1c -BWSne+t"Hawaii 2017 Visitor Arrivals" -Bya1Og1o -Bxafg -O -K -Y4.5i >> $ps
  9. gmt psscale -Ct.cpt -DJRM -O -R -J -Bxa1Og1o >> $ps
Tip!

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

Comments

Loading...