Hello,
I’m a neophyte with GMT and I’m programming with bash.
I’ve plotted the GPS velocity vectors with gmt psvelo, but I would like to color the velocity vectors in function of their velocities with a .cpt palette.
I think that you should do what @PlanetGus says and your data must be prepare:
“… it expects the user to supply a multisegment file where each segment header contains a -Zval string. The val will control the color of the line or polygon (if -L is set) via the CPT.”
Many thanks @Esteban82.
I wrote the psvelo line as:
cat gps.vel.tot | awk ‘{print $2,$3,$4,$6,$5,$7,$8}’ | gmt psvelo $J $R $Se -Wblue -Cgps_vel.cpt -L -Z -K -O >> $out
but the output is only the blue gps vectors, without a continous gradataion of the cpt. I would like that the gps vectors has colours which varies according to the velocity…