-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Inconsistency in angles between VectorField
and VectorField.from_uv
#767
Comments
TheoMathurin
changed the title
Inconsistency in VectorField angles
Inconsistency in angles between Nov 13, 2024
VectorField
and VectorField.from_uv
The related code is here if you want to help take a look: geoviews/geoviews/element/geo.py Lines 385 to 410 in da8719e
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Software Version Info
The resulting arrows are not the same if you use the usual
gv.Vectorfield
constructor or.from_uv
. The latter yields incorrect results.I think it may be due to a projection applied where it should not (maybe related to #296).
For
hv.VectorField
(holoviews instead of geoviews), that's the other way around (.from_uv
is correct).Another difference is that
gv.VectorField.from_uv
cannot take a crs argument likegv.VectorField
.Given components
u
andv
, I compute the angle asnp.pi/2 - np.arctan2(-v, -u)
Result with geoviews:
Result with holoviews:
The text was updated successfully, but these errors were encountered: