IN: Identifier of the object ( dataset or group) to create the attribute within.
const char *obj_name
IN: The name of the object to attach the attribute.
const char *attr_name
IN: The attribute name.
short *buffer
IN: Buffer with data to be written to the attribute.
hsize_tsize
IN: The size of the 1D array (one in the case of a scalar attribute). This value is used by H5Screate_simple to create the dataspace.
Hdf rm anchor
AnchorName
description
Description:
HTML Wrap
class
hdf-rm-section
H5LTset_attribute_shortcreates and writes a numerical attribute namedattr_nameand attaches it to the object specified by the nameobj_name. The attribute has a dimensionality of 1. The HDF5 datatype of the attribute is H5T_NATIVE_SHORT.
Hdf rm anchor
AnchorName
returns
Returns:
HTML Wrap
class
hdf-rm-section
Returns a non-negative value if successful; otherwise returns a negative value.