-
Notifications
You must be signed in to change notification settings - Fork 45
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
String-valued zVariables: Writing & reading yields wrong numpy array shape. #172
Comments
It could be that as little as setting
|
Also, I also can not get writing+reading 2D string-valued zVariables to work as I would expect.
generates
cdfdump:
Note that while I do write a 3x2 array and get a 2x3 array back, it is not a transposed array/matrix: The components are in the wrong locations. Note: I get an error if I omit |
Any progress on this? |
Sorry for the delay getting back to you, and thanks for documenting the error so well! I think we'll take a look at this shortly. |
Footnote: I sent an e-mail on a similar issue 2022-10-27 but I can not reproduce that exact problem now (possibly confused two different installs, with different cdflib versions).
I am trying to store a string-valued zVariable in a CDF, but when I read it back from the CDF, it has a different shape.
(cdflib 0.4.8, xarray 2022.10.0, numpy 1.23.0, Python 3.9.2).
which generates the following output
I see the same behaviour for CDF_CHAR and CDF_UCHAR.
The text was updated successfully, but these errors were encountered: