Hi Thomas,
there is the H5Oset_comment() function:
http://www.hdfgroup.org/HDF5/doc/RM/RM_H5O.html#Object-SetComment
it allows to comment groups, dataset and the type of an attribute,
though not the attribute itself. Maybe this is sufficient?
Werner
On Tue, 06 Jul 2010 07:19:51 -0500, Quincey Koziol <[email protected]> wrote:
Hi Thomas,
On Jul 2, 2010, at 1:44 PM, Thomas Robitaille wrote:
Hello,
Is there a way to specify comments or definitions for attributes of groups or
datasets? In the Flexible Image Transport System (FITS) standard, this is
possible, as demonstrated in the following header chunk:
SIMPLE = T
BITPIX = -16 / unsigned 16-bit integers
NAXIS = 2 / 2-dimensional image
NAXIS1 = 100 / x dimension
NAXIS2 = 100 / y dimension
Is there a way to do this in HDF5?
Not explicitly, no. However, you could define a convention where you created additional
attributes for each attribute, something like an attribute named "foo" and another
attribute named "foo_comment".
Quincey
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
--
___________________________________________________________________________
Dr. Werner Benger Visualization Research
Laboratory for Creative Arts and Technology (LCAT)
Center for Computation & Technology at Louisiana State University (CCT/LSU)
211 Johnston Hall, Baton Rouge, Louisiana 70803
Tel.: +1 225 578 4809 Fax.: +1 225 578-5362
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org