I am currently plotting some data points with respect to time series (as cpt) using GMT 6.1.1. I used this script, but it does not work. Any suggestions will be appreciated?
gmt makecpt -T2020-05-08T/2020-06-02T/5h > t.cpt
#input format is like 104.4902 29.3797 2020-05-13T04:51:15
awk -F"," '{ print $8,$7,substr($3,1,length($3)-8)}' $FI_result | gmt plot -Sc0.35c -Ct.cpt
But I got this error:
plot [ERROR]: CPT t.cpt has no z-slices!
[Session gmt (0)]: Error returned from GMT API: GMT_CPT_READ_ERROR (8)
[Session gmt (0)]: Error returned from GMT API: GMT_CPT_READ_ERROR (8)
How can we make cpt using datetime and get the color bar respectively?
2020-05-08T00:00:00 50.062/21.187/67.437 2020-05-08T05:00:00 50.062/21.187/67.437 L
2020-05-08T05:00:00 52.187/27.562/82.312 2020-05-08T10:00:00 52.187/27.562/82.312 L
...
2020-06-01T09:00:00 139.94/9.3125/1.6875 2020-06-01T14:00:00 139.94/9.3125/1.6875 L
2020-06-01T14:00:00 133.56/7.1875/2 2020-06-01T19:00:00 133.56/7.1875/2L
2020-06-01T19:00:00 126.19/5.0624/2 2020-06-02T00:00:00 126.19/5.0624/2B
B black
F white
N 128