Hi all, I'm having some difficulty with HDFview when names (e.g. dataset names/compound member names) contain standard symbols (e.g. degrees °). HDF5 itself works fine, but unexpected behaviour is observed in HDFview (seen in both 2.9 and 2.10) - such objects cannot be opened or queried.
In the simplest example, I've created a dataset that cannot be opened in
HDFview (double clicking the name has no effect), and choosing "Show
Properties" on the dataset results in a
java.lang.reflect.InvocationTargetException. Interestingly the last
character of the dataset name is culled; which is potentially why there is
an error.
The same dataset can be opened and queried in C as follows:
> #include <hdf5.h>
> #include <stdio.h>
> int main()
> {
> char S[32];
> hid_t f = H5Fopen( "test-symb.h5", H5P_DEFAULT,H5P_DEFAULT );
> H5Lget_name_by_idx( f, ".", H5_INDEX_NAME, H5_ITER_DEC, 0, S, 32,
> H5P_DEFAULT );
> H5Fclose( f );
> puts( S );
> }
Although some terminals have trouble with symbols, piping the output to a
file shows the expected result "T (°C)"
Any ideas on why HDFview seems to have problems with it?
Merry Christmas all!
Cheers,
Martijn
test-symb.h5
Description: Binary data
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
