-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with automatic legend with grdvector #1499
Comments
Hi, Anyway, as far as I remember to have automatic vectors in legends one must use the modern mode. That is, wrap the commands in a gmtbegin()… gmtend() because the classic mode legend is not able to plot arrows. Try playing with the vec_scale options to see what needs to make the error message go away. |
I find strange that the error says “Cartesian”. If you add the option Vd=1 you get the full GMT command. Does it have in it the option -A? |
@joa-quim thank you for answer to my issue. This is the full command I got when using the option Vd=1
I used polar coordinates instead of Cartesian because in the documentation it is indicated that (https://docs.generic-mapping-tools.org/latest/grdvector.html): "+c[[slon/]slat] controls where on a geographic map a geovector’s refsize length applies. The modifier is neither needed nor available when plotting Cartesian vectors. " On the other hand I am not used to used modern mode but, I think is good time to learn how to use it! Enjoy your holidays. Thanks again! |
Continue the strange things. That message was printed by GMT, not by GMT.jl as it should so not sure about the missing -A. The Cartesian referred in the docs means that they are not geographical and then, logically, one cannot use scake_at_lat. Are your grids geographical or Cartesian? |
What does it print Vd=2 instead of Vd=1? Note, it’s Vd=2, not V=“d” like I think you did. |
But we are being dum. A polar grid is not geographic so can’t support scale_at_lat. |
Yes! you are right I used V=1 and not Vd.
I am representing vectors in a geographical space (i.e. ocean currents in the Gulf of Mexico). However, even when I removed option -A the error persists when used Thank you. |
The examples at the end of |
Hello,
I am using the grdvector to represent ocean currents and would like to include a reference vector in the legend. I uploaded an example dataset I am using to: https://drive.google.com/file/d/1rrYrVIQMPHJl868BMZrr7Nqkhq6QXKVw/view?usp=sharing
The file contains Cartesian vectors with the eastward (ugos) and northward velocity components. To use the automatic labeling of GMT, I transformed Cartesian to polar coordinates. Finally the code that I used to represent the vector is:
However I obtained the following error:
Could you help me to identify what I missing?
Thank you
The text was updated successfully, but these errors were encountered: