Subject: | problem to read attribute with Simple Dataspace |
Date: | Wed, 20 Apr 2011 16:30:52 -0400 |
To: | <bug-PDL-IO-HDF5 [...] rt.cpan.org> |
From: | Gary Fu <gfu [...] sigmaspace.com> |
Hi,
The PDL::IO::HDF5 version 0.62 mentions the support of Simple
dataspace. However, I have a attribute with Simple Dataspace as below:
GROUP "/" {
ATTRIBUTE "Distributor" {
DATATYPE H5T_STRING {
STRSIZE 5;
STRPAD H5T_STR_NULLTERM;
CSET H5T_CSET_ASCII;
CTYPE H5T_C_S1;
}
DATASPACE SIMPLE { ( 1, 1 ) / ( 1, 1 ) }
DATA {
(0,0): "arch"
}
}
However, when I tried to read the attribute value with 'attrGet', I got
the following warning message and no data retrived.
Warning: Non-Scalar Dataspace for Attribute name 'Distributor' Dataspace
in PDL::IO::HDF5::Group:get
at tst_HDF5.pl line 17
Is this a bug or a not supported feature yet ?
Thanks,
Gary