On Mar 16, 2010, at 10:43 PM, Elena Pourmal wrote:
> Anton,
>
> Currently HDF5 does't support attributes for a field in a compound datatype.
True. But, we just submitted an NSF proposal that would add this
feature. (So, I hope it gets funded :-)
Quincey
> You may try to use a committed datatype that corresponds to your C structure
> and store an attribute(s) for the datatype. Then all datasets that use the
> same committed datatype will have the same associated units. Unfortunately
> the application should know the association between attributes and fields in
> the compound datatype.
>
> Elena
>
>
> On Mar 16, 2010, at 5:56 PM, Anton Kulchitsky wrote:
>
>>
>> I would like to specify physical units and long names for every field of
>> a compound object. I have an array of particles. Each particle is
>> specified as a C structure with many fields associated with it. I would
>> like to have an attribute for every field. However, when I create a
>> compound object, I am not able to specify an attribute for a
>> field. I am wondering if anyone has similar problem?
>>
>> _______________________________________________
>> Hdf-forum is for HDF software users discussion.
>> [email protected]
>> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org