Hi Cecile, Could you share the gmt command that you used for creating the colormap with dates/times? This would help for testing how to get the output equivalent. Thanks!
Hello
Actually, I realised that I always built the colorcale by hand. However, it could be great to build it using makecpt.
However, I was able to plot it with the correct dates:
gmt psscale -Cdate_coloscale.cpt -Dx18/4c+w-4c/0.3c+jTC -Bxaf+l"time" -R -J > $psfile_gen_time
with date_coloscale.cpt :
2009-11-26T 127 0 255 2010-03-01T 0 0 255
2010-03-01T 0 0 255 2010-06-01T 0 255 255
2010-06-01T 0 255 255 2010-09-01T 0 255 0
2010-09-01T 0 255 0 2010-12-01T 255 255 0
2010-12-01T 255 255 0 2011-03-06T 255 0 0
Many thanks
Cécile
The hand-made colormap is a discrete colormap. To create a discrete colormap using makecpt, the increment needs to be specified in the series argument (example below uses a 1 month increment):
Dear Meghan,
I tried and it does not work.
I remain confused with the coltypes=“i2T”. With GMT it was related to the third column. In this case, how to know that it is related to ‘color’…
Sorry, but I am lost
Cécile