-
Notifications
You must be signed in to change notification settings - Fork 259
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
Missing dimension in NetCDF4 file written using netCDF4-0.9 #36
Comments
From sourish....@gmail.com on February 13, 2010 09:20:40 P.S. - I'm using python 2.6 -Sourish |
From whitaker.jeffrey@gmail.com on February 13, 2010 14:41:05 Confirmed. This simple script will trigger the bug: from netCDF4 import Dataset Changing the format to NETCDF3_CLASSIC, or reversing the order of creation of the I'm trying to figure out if this is a library bug or a python module bug. Will let you Thanks for the report. |
From whitaker.jeffrey@gmail.com on February 13, 2010 14:48:12 Another piece of data. If you build netcdf4-python against netcdf-4.0.1, or netcdf-4.1- |
From whitaker.jeffrey@gmail.com on February 13, 2010 16:06:01 I've confirmed it's a library bug. Sent a simple c program that triggers it to the |
From sourish....@gmail.com on February 13, 2010 22:49:17 Thanks for the quick response. Two questions:
|
From sourish....@gmail.com on February 13, 2010 23:04:58 Confirmed that the bug does not show up with NetCDF-4.1-rc1 |
From whitaker.jeffrey@gmail.com on February 14, 2010 05:55:28
|
From whitaker.jeffrey@gmail.com on February 18, 2010 09:38:21 An update from the netcdf developers: "The bug itself manifests itself under the following circumstances: if A key part of activating the bug is that you write some of the The way to check for this problem is to do an ncdump -h of the file and |
From whitaker.jeffrey@gmail.com on February 27, 2010 07:18:13 This bug should now be fixed in the hdf5 and netcdf libs. Please test with hdf-1.8.4- -Jeff |
From whitaker.jeffrey@gmail.com on February 25, 2014 18:04:09 Status: Fixed |
From sourish....@gmail.com on February 13, 2010 10:18:52
What steps will reproduce the problem? 1. From the python prompt, run the attached script. Then issue
x = TestNCDF4()
x.WriteFile()
Instead, it shows 'latitude' twice, and the arrays 'conc' and 'surface
pressure' show dimensions of latitude x latitude x longitude instead of
time x latitude x longitude
from netCDF4 import Dataset
fid = Dataset('test.nc4','r')
fid.dimensions
This will show only two dimensions ('latitude' and 'longitude') and not three. What is the expected output? What do you see instead? I expect to see three dimensions, 'time', 'latitude' and 'longitude' in the
written file. Instead, I only see two. What version of the product are you using? On what operating system? netcdf-4.1
netCDF4-0.9
Ubuntu linux x86_64
Thanks,
-Sourish
Attachment: TestNCDF4.py
Original issue: http://code.google.com/p/netcdf4-python/issues/detail?id=36
The text was updated successfully, but these errors were encountered: