-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
netCDF4 cannot read from little-endian HDF4 files #113
Comments
Hi, can you confirm if this issue still occurs? |
Still occurs. Just to be clear, I have built with the following steps from autoreconf -i ./configure --prefix=/usr/local --enable-hdf4 make make check make install Using ncdump hdf_little-endian.hdf ncdump: hdf_little-endian.hdf: NetCDF: Bad type ID I have put the file I am testing against at https://www.dropbox.com/s/utig3mtnjvhuiqx/hdf_little-endian.hdf?dl=0 |
Thank you for confirming; I had hoped that the fix for reading endianness from a netcdf4 file had cleared this up. I will investigate tomorrow and follow up here when I have some more information. Thanks! Sent from my iPhone
|
Hi Tim, I've created an issue for this in the Unidata JIRA system; you can view it at https://bugtracking.unidata.ucar.edu/browse/NCF-332. I've narrowed down the issue and I think I have a fix in mind. I will post more information here when I have more to add, as well as updating the JIRA issue. I will also be creating a new branch, Thanks again for the comprehensive bug report! |
Cheers Ward. Looking forward to getting this one nailed. |
Ok, I have a tentative fix in branch |
@timburgess Ok, the completed1 fix is checked into branch 1: "Completed" unless I find out there is still an error or other issue. |
Fix merged into |
Thanks Ward. Latest build of |
Using OS X 10.9.5, the following example code will produce a little-endian HDF4 file which contains a simple incrementing 5x5 array. Specifically, binary ORing the defined datatype with DNFT_LITEND creates a little-endian file.
Using
hdp dumpsds filename
showsHowever
ncdump
fails to read the file with aNetCDF: Bad type ID
.This issue also impacts the python netCDF4 library as it fails with the same error, producing:
The text was updated successfully, but these errors were encountered: