Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5D_GET_TYPE

Returns an identifier for a copy of the datatype for a dataset

Procedure:

H5D_GET_TYPE(dataset_id)

Signature:

hid_t H5Dget_type(hid_t dataset_id )

SUBROUTINE h5dget_type_f(dataset_id, datatype_id, hdferr) 
  IMPLICIT NONE 
  INTEGER(HID_T), INTENT(IN) :: dataset_id    ! Dataset identifier
  INTEGER(HID_T), INTENT(OUT) :: datatype_id  ! Datatype identifier
  INTEGER, INTENT(OUT) :: hdferr              ! Error code 
                                              ! 0 on success and -1 on failure
END SUBROUTINE h5dget_type_f

Parameters:
hid_t dataset_id    IN: Identifier of the dataset to query

Description:

H5D_GET_TYPE returns an identifier for a copy of the datatype for a dataset. The datatype should be released with the H5T_CLOSE function.

If a dataset has a named datatype, then an identifier to the opened datatype is returned. Otherwise, the returned datatype is read-only. If atomization of the datatype fails, then the datatype is closed.

A datatype identifier returned from this function should be released with H5T_CLOSE when the identifier is no longer needed so that resource leaks will not occur.

Datatype Identifiers

Please note that a datatype is actually an object identifier or handle returned from opening the datatype. It is not persistent and its value can be different from one HDF5 session to the next.

H5T_EQUAL can be used to compare datatypes.

HDF5 High Level APIs that may also be of interest are:

Returns:

Returns a datatype identifier if successful; otherwise returns a negative value.

Example:

Coming Soon!

--- Last Modified: October 25, 2019 | 08:54 AM