Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
John Caron wrote:
I have a fix for this in the current CDM release (4.1.20100126.2307). The HDF5 IOSP now sets the Attribute Array unsigned flag. I have also added a convenience routine Attribute.isUnsigned(). Thanks for reporting this problem.Gilbert, Allen DHello,I am trying to use NetCDF Java 4.1 to read HDF5 files that contain datasets and attributes of type unsigned short. I am able to read the datasets correctly; when Array.isUnsigned() returns true, I widen each element to an int to retain the correct value. However, it seems that there is no way to determine whether or not an attribute value is unsigned once it is read, as the returned Array’s unsigned field does not get set to “true” for unsigned attribute values.Is there a way to find out if an attribute value is unsigned in NetCDF Java?Thanks for your time! -AllenHi Gilbert:
netcdf-java
archives: