Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5LT_GET_ATTRIBUTE

Reads an attribute from disk

Procedure:

H5LT_GET_ATTRIBUTE (loc_id, obj_name, attr_name, type_id, data)

Signature:

herr_t H5LTget_attribute( hid_t loc_id, const char *obj_name, const char *attr_name,  hid_t mem_type_id, void *data )

subroutine h5ltget_attribute_f(loc_id, dset_name, attr_name, buf, buf_type, SizeOf_buf_type, errcode)
  implicit none
  integer(HID_T), intent(IN) :: loc_id             ! file or group identifier 
  character(LEN=*), intent(IN) :: dset_name        ! name of the dataset 
  character(LEN=*), intent(IN) :: attr_name        ! name of the attribute
  type(C_PTR) :: buf                               ! data buffer
  character(LEN=*), INTENT(in) :: buf_type         ! valid data types are:
                                                   !    CHARACTER, INTEGER or REAL
                                                   !    NOTE: only the first character matters and is case insensitive
  integer(size_t), INTENT(in) :: SizeOf_buf_type   ! size of buf's data type 
  integer :: errcode                               ! error code
end subroutine h5ltget_attribute_f

Parameters:
hid_t loc_idIN: Identifier of the object ( dataset or group) to read the attribute from
const char *obj_nameIN: The name of the object that the attribute is attached to
const char *attr_nameIN: The attribute name
hid_t mem_type_idIN: Identifier of the memory datatype
void * data

OUT: Buffer with data

Description:

 H5LT_GET_ATTRIBUTE reads an attribute named attr_name with the memory type mem_type_id.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

Coming Soon!

History:
Release    Change
1.10.0Added Fortran interface. 

--- Last Modified: August 13, 2019 | 01:35 PM