The H5A_CREATE function creates a dataset as an attribute of another group or dataset.
Note: Attributes are intended to be small objects with a maximum size of 16 kilobytes, data sizes greater than this limit will cause the attribute creation to fail. A large dataset intended as meta data for another dataset can be stored as an additional dataset. An attribute can then be attached to the original dataset as an object reference pointer to the desired supplemental dataset.
Result = H5A_CREATE(Loc_id, Name, Datatype_id, Dataspace_id)
The Result gives the attribute identifier number. This identifier should be released with the H5A_CLOSE procedure.
An integer giving the identifier of the group, dataset, or named datatype to which the attribute will be attached
A string giving the name of the attribute to create.
An integer giving the datatype identifier of the new attribute.
An integer giving the dataspace identifier of the new attribute.
None
See the example under H5_CREATE.
6.2 |
Introduced |