Skip to content
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

3D vector animation error #2192

Open
cbraver opened this issue Oct 11, 2017 · 5 comments
Open

3D vector animation error #2192

cbraver opened this issue Oct 11, 2017 · 5 comments

Comments

@cbraver
Copy link

cbraver commented Oct 11, 2017

My data is (8, 21, 45, 70) and the dimensions are (time, level, lat, lon). my code is:

import vcs, cdms2

x = vcs.init()
f = cdms2.open('all.nc')
v = f["v"]
u = f["u"]
dv3d = vcs.get3d_vector()
dv3d.BasemapOpacity = 0.19
dv3d.ZSlider = 0.5
dv3d.GlyphDensity = 3.5
dv3d.GlyphSize = 0.27
x.plot(u, v, dv3d)
x.interact()

when I click the animate and step, I got the following messages:

ERROR: In /export/doutriaux1/miniconda2/conda-bld/vtk-cdat_1503063744037/work/Common/Core/vtkDataArray.cxx, line 1423
vtkFloatArray (0x429f8f0): Number of tuples in 'from' (64680) and 'to' (517440) do not match.

Can't get Metadata for var zeros!

I'm new to uv-cdat, can anyone tells me where is wrong, thank you very much~

@doutriaux1
Copy link
Contributor

Hello,

Could you post your netcdf file somewhere so I can try to reproduce this with your data?

Thanks.

@cbraver
Copy link
Author

cbraver commented Oct 12, 2017

Here is my netcdf file:

https://drive.google.com/open?id=0B1lsRjDOKJFRbmVjN1ljTC0tc2M

it is from 8 single files with the nco's ncrcat command

the animation of scalars like T(temperature) is OK

Thanks for your reply.

@doutriaux1
Copy link
Contributor

got it thanks will take a look shortly

@lee1043
Copy link

lee1043 commented Nov 20, 2017

@doutriaux1 maybe related to CDAT/vcs#263?

@doutriaux1
Copy link
Contributor

@danlipsa i think that was the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants