Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5D_CLOSE

Closes the specified dataset

Procedure:

H5D_CLOSE(dataset_id)

Signature:

herr_t H5Dclose
(
    hid_t dataset_id
)

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

Parameters:
hid_t dataset_id    IN: Identifier of the dataset to close access to

Description:

H5D_CLOSE ends access to a dataset specified by dataset_id and releases resources used by it. Further use of the dataset identifier is illegal in calls to the dataset API.

Returns:

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

Example:

examples / h5_crtdat.c [40:41]  1.10/master  HDFFV/hdf5
   /* End access to the dataset and release resources used by it. */
   status = H5Dclose(dataset_id);

  !
  ! End access to the dataset and release resources used by it.
  !
  CALL h5dclose_f(dset_id, error)

--- Last Modified: February 19, 2018 | 03:33 PM