Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5LT_GET_ATTRIBUTE_INFO

Gets information about an attribute.

Procedure:

H5LT_GET_ATTRIBUTE_INFO(loc_id, obj_name, attr_name, dims, type_class, type_size)

Signature:

herr_t H5LTget_attribute_info( hid_t loc_id, const char *obj_name, const char *attr_name,  hsize_t *dims, H5T_class_t*type_class, size_t *type_size )

subroutine h5ltget_attribute_info_f(loc_id, dset_name, attr_name, &
                                    dims, type_class, type_size, 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
  integer(HSIZE_T),dimension(*),intent(INOUT):: dims 
                                                   ! dimensions 
  integer, intent(INOUT)         :: type_class     ! type class
  integer(SIZE_T), intent(INOUT) :: type_size      ! type size
  integer :: errcode                               ! error code
end subroutine h5ltget_attribute_info_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.
hsize_t * dimsOUT: The dimensions of the attribute.
H5T_class_t * type_classOUT: The class identifier. To a list of the HDF5 class types please refer to the Datatype Interface API help.
size_t * type_size

OUT: The size of the datatype in bytes.

Description:

H5LTget_attribute_info gets information about an attribute named attr_name attached to the object specified by the name obj_name.

Returns:

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

Example:

Coming Soon!

--- Last Modified: December 04, 2017 | 07:10 AM