-
Notifications
You must be signed in to change notification settings - Fork 68
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
The vectors are not drawn when using projection other than plat-caree. #653
Comments
Can I get some more details on this issue? |
look at vcs_test_basic_vector_-3_proj_SH or any vector test that involves a projection, the continent, labels etc are drawn but no vector. |
Will look into it. |
i think it is because the glyph location is set via an array, and this array does not go through the projection code. |
I'm looking into this, and it's difficult to figure out what data is in what coordinate system, what coordinate system it should be in, etc. I'm using the test command:
Prior to calling doWrap on the vector data, the vector data bounds are similar to the final continent bounds (Roughly If there is a missing projection, where should that projection take place? Should each worker function (plotVector, plot2D, plot[...], etc) take care of projecting the data, or should this be handled somewhere higher up the stack? I guess what I'm looking for is sort of a high level description of how data comes into vcs (e.g. what coordinate system), and what transformations are expected to take place, what order the transformations should be performed in, and where the transformations are expected to occur. |
@dlonie I think you're onto something. doWrap maniuplates the inputData ut in the case of vectors we are not using this we are using some other array. I can we need to update doWrap to also alter the "Vectors array" |
I'll reassign this as it's a VCS issue, and you have a better understanding of what that code should be doing ;) |
@dlonie taking out doWrap does make any diff the bounds are big as soon as I do the geo (projection). The numbers are probably ok too, they are in m on the earth sphere. I just think the fitToViewPort might be the issue here. Not sure. Although I think the issue is with the glyph and the associatedArray (vector). Anyhow I think we need to get together on this one. Won't be fixed for 2.2 that's for sure. Moving milestone |
when fixing this we should turn back on vector tests for projections |
@aashish24 @dlonie is one f you taking a look at this? |
@doutriaux1 I haven't looked at it since it was reassigned. |
import vcs
import os
import cdsm2
f=cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
u=f("u")
v=f("v")
x=vcs.init()
V=x.createvector()
p=x.createprojection()
p.type="polar"
V.projection=p
x.plot(u,v,V) |
Nice! |
Also, I think I may have found a bug in vtkGeoTransform. Will confirm it on Monday, since I am having a hard time to believe that we had this bug all along. |
No description provided.
The text was updated successfully, but these errors were encountered: