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

Shape of scalar data obtained by indexing a 1D variable is (1,) rather than () #57

Closed
dopplershift opened this issue Feb 26, 2014 · 1 comment

Comments

@dopplershift
Copy link
Member

From jorn.bru...@gmail.com on July 12, 2010 04:18:10

What steps will reproduce the problem? Open a NetCDF file for reading and index a 1D variable with an integer, e.g., nc.variables['time'][0]. What is the expected output? What do you see instead? The resulting data (a scalar value) has shape (1,) rather than (). In multidimensional variables indexed with integers, the indexed dimensions do drop out correctly in the result. What version of the product are you using? On what operating system? Current binary distribution for Windows/Python 2.6.

Original issue: http://code.google.com/p/netcdf4-python/issues/detail?id=57

@dopplershift
Copy link
Member Author

From whitaker.jeffrey@gmail.com on July 12, 2010 04:56:39

This issue was closed by revision r902 .

Status: Fixed

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

No branches or pull requests

1 participant