I have a ‘linefile.txt’ with a series of lines in the format
>
lon1 lat1
lon2 lat2
>
lon3 lat3
lon4 lat4
...
and so on. I wanted these lines to be colored by a third value and a colormap, which I couldn’t get to work by appending a third value after lon1 lat1
for example. I was able to get this working by the following line, in which I added the -Z pointing to a file which has a value for each line segment (single column .txt file):
# lines colored with correlation
gmt psxy -R -J $linefile -O -K -W1p+z -Z$colorfile -Ccorr.cpt >> $out
However now I want to change the transparency of each line based on a fourth value, which I understand I should be able to do by adding a -t
flag on this command, without a value associated (manual: If no transparencies are given then we expect to read them from the last numerical column(s).).
The issue is I’m not really sure how the formatting of my ‘linefile.txt’ would work. Where would the transparency value for each segment be placed? This sort of comes back to my initial issue (which I worked around with the -Z command) where I was unable to format the colormap value properly into my line file.
Thanks,
Aaron