Using psvelo and -G option
|Target version:||Candidate for next bugfix release|
|Affected version:||5.1.x||Platform:||Mac OS X|
This bug is related with previous #158. Now I have tested -G option (psvelo) to fill in a pattern (e.g. -Gp100/11) and this does not work. Just tested in GMT 4.5.8. Don't know if this is present on GMT5.
Please, could you take a look at it? I attach updated code so you can run it and see the problem. When I run it returns me help information on psvelo but I have tested -Gp100/11 and it works ok in pscoast so sintax is ok.
Physical Oceanography (Lab. F214)
University of Las Palmas de Gran Canaria
35017 Las Palmas de Gran Canaria
#1 Updated by Paul about 5 years ago
- Status changed from New to In Progress
A few things going on here:
GMT 4: psvelo never implemented fills other than solid color, so -Gp is not supported - of course it would be nice if it said so. I think this is true throughout the meca supplement.
GMT 5: We had a i/o bug related to -H that is now fixed in r10534. Next issue is that vectors drawn in GMT5 are now lines (controlled by a pen thickness) + an arrow head (fillable). We still have some more work to do on the meca supplement plotting to conform to GMT 5 style, so it GMT5 you are better off specifying arrows the new way. Note this code was donated by others and was based on an old GMT3 psxy model; hence it is a bit painful to deal with. Finally, the old-style -W10 (no units) should, under compatibility mode, be interpreted as 10/300 inch but it got picked up as 10 points. I'll look at that next.
#2 Updated by David about 5 years ago
- File map.pdf added
Thank you for the info. I thought -G argument using patterns was available because of documentation:
I attach you the final map I've made; in part using GMT and remaining by "hand" in Illustrator.
Thank you for your work developing GMT. It's a great tool!
#4 Updated by David over 4 years ago
I obtained and built latest GMT development version 5.0.1b (r10992). Then I tested psvelo again and observed:
Optional argument -G fill works good but only fills arrow head, not arrow body but I suppose this is related with what you wrote above "Next issue is that vectors drawn in GMT5 are now lines (controlled by a pen thickness) + an arrow head (fillable). So I suppose, at present, it is not possible filling arrow body, cause -W argument does not work in any old or new way I have tested out.
Also I think there's an issue of parameter +g in optional argument -A; when using +g (e.g. -A20p+a90+gyellow+p10p+e) yellow color does not override the one given by -G in the main psvelo syntax (e.g. psvelo -R -J ... ... -Ggrey -A20p+a90+gyellow+p10p+e >!test.ps)
A last different issue; when using -V in psvelo I get the message "psvelo (GMT_parse_common_options): Warning: Option -V given more than once" and sure I wrote it once.
I attach the script I have used to test psvelo using GMT5 syntax as well as its output test.pdf.
Looking forward psvelo could be completed in the final GMT5 release.
Thank you so much!