Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5F_IS_HDF5

Determines whether a file is in the HDF5 format

Procedure:

H5F_IS_HDF5 (name)

Signature:

htri_t H5Fis_hdf5(const char *name )

SUBROUTINE h5fis_hdf5_f(name, status, hdferr)   
  IMPLICIT NONE 
  CHARACTER(LEN=*), INTENT(IN) :: name   ! Name of the file
  LOGICAL, INTENT(OUT) :: status         ! This parameter indicates 
                                         ! whether file is an HDF5 file 
                                         ! ( positive value or zero ) 
  INTEGER, INTENT(OUT) :: hdferr         ! Error code 
                                         ! 0 on success and -1 on failure
END SUBROUTINE h5fis_hdf5_f

Parameters:
const char *name    IN: File name to check format

Description:

H5F_IS_HDF5 determines whether a file is in the HDF5 format. 

Returns:

Returns a positive value if the file name is an HDF5 file. 
Returns 0 if the file name is not an HDF5 file. 
Returns a negative value when the function fails. This includes the case where the file does not exist.

Example:

Coming soon!

--- Last Modified: June 02, 2020 | 10:39 AM