Location and name with attribute functions:

Sample file structure: `DATA_FILE1`

Several attribute functions, such as `H5Acreate2`, use a location identifier, an object name, and an attribute name, `loc_id`, `obj_name`, and `attr_name`, respectively. `loc_id` and `obj_name` specify the object to which an attribute is attached and carry exactly the same meaning and interaction modes as described for `loc_id` and `name` in “Accessing objects by location and name.” `attr_name` specifies the attribute as it is attached to that object.

The following example specifies an attribute named `A3` attached to the dataset `dset3`.

- `loc_id` specifies `group3`.
  `name = 'dset3'`
  `attr_name = 'A3'`

Older H5A functions, such as `H5Acreate1`, generally use only a location identifier and a name. In these functions, `loc_id` fully specifies the object to which an attribute is attached; the attribute itself is specified by an attribute name, `attr_name`.

Again, the following example specifies an attribute named `A3` attached to the dataset `dset3` above.

- `loc_id` specifies `dset3`.
  `attr_name = 'A3'`