Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5LT_GET_DATASET_INFO

Retrieves information about a dataset 

Procedure:

H5LT_GET_DATASET_INFO(loc_id, dset_name, dims, class_id, type_size)

Signature:

herr_t H5LTget_dataset_info ( hid_t loc_id, const char *dset_name, hsize_t *dims, H5T_class_t *class_id, size_t *type_size )

subroutine h5ltget_dataset_info_f(loc_id, dset_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 
  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_dataset_info_f

Parameters:
hid_t loc_idIN: Identifier of the object to locate the dataset within
const char *dset_nameIN: The dataset name
hsize_t * dimsOUT: The dimensions of the dataset
H5T_class_t * class_idOUT: The class identifier. H5T_class_t is defined in H5Tpublic.h. See H5T_GET_CLASS for a list of class types.
size_t * type_size

OUT: The size of the datatype in bytes

Description:

H5LT_GET_DATASET_INFO retrieves information about a dataset named dset_name attached to the object loc_id.

Returns:

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

Example:

--- Last Modified: March 26, 2019 | 09:00 AM