Hello all
I found out that hdfview is not able to display array which is created
in following way (C++):
void saveAttrArray(const H5::Group &group, const char *name, const float
*ar, int size)
{
hsize_t dims = size;
H5::DataSpace ds(H5S_SCALAR);
H5::ArrayType har(H5::PredType::NATIVE_FLOAT, 1, &dims);
H5::Attribute attr(group.createAttribute(name, har, ds));
attr.write(har, ar);
}
It shows array size=1 (that is may be OK) and all elements as 0!
h5dump happily dumps array correctly without any problem.
Is this problem of hdfview? Do I do anything wrong?
--
Best regards, Sergey Spiridonov
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org