I am newish to HDF5 and am trying to read a group attribute ("Info") that is
a character string (a description of the dataset in the group). I tried the
following and got all blanks. I was wondering if there was an example
somewhere or someone could push me in the right direction.integer(hid_t) :: stringType !create a string memory type from H5T_C_S1 call H5Tcopy_f (H5T_C_S1, stringType, error) call H5Gopen_f (id, trim(adjustl(subGroupName)), subgroup_id, error) call H5Aopen_name_f (subgroup_id, 'Info', attr_id, error ) call H5Aread_f (attr_id, stringType, info, attr_dims, error) !info is a character(len=500) string print*,' info=',trim(adjustl(info)) ! comes out blank (I left out opens up until this subgroup and error checking for clarity here, all ids are integer(hid_t), attr_dims is integer (hsize_t), dimension(1)) Thank you! Naomi Greenberg Principal Member of the Research Staff Electromagnetics Lab <http://www.riversideresearch.org/> www.riversideresearch.org T: 212.502.1718 | F: 212.502.1729 | line Riverside Research | 156 William Street | New York, N.Y. 10038 <http://www.riversideresearch.org/rss.xml> cid:[email protected] <https://twitter.com/RiversideRsch> cid:[email protected] <https://www.facebook.com/RiversideResearch> cid:[email protected] <https://www.linkedin.com/company/riverside-research> linkedin-new This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain proprietary, confidential or privileged information or otherwise be protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender and destroy all copies and the original message.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
