I’m new to using HDF5 directly in Fortran. Up until now I’ve been creating HDF5 files with Flash, the numerical hydro code and reading them with python via the yt package.
Now I want to read some of the datafiles produced by Flash and process them within Fortran code.
To get started I’m trying to do something simple - read a small hdf5 file that I created with python (h5py). The file has 5 groups and several datasets under each group. I’m trying to use h5dread_f to read a dataset and during the compile I’m getting
CALL h5dread_f(dset11_id, H5T_NATIVE_INTEGER, projm, arrdim, error)
Error: There is no specific subroutine for the generic ‘h5dread_f’ at (1)
The arguments to h5dread_f are:
INTEGER(HID_T) :: dset11_id
DOUBLE PRECISION, DIMENSION(5) :: projm
INTEGER(HSIZE_T) :: arrdim
INTEGER :: error
I have to say that I really don’t understand the meaning of the memory datatype identifier argument. Any hints would be appreciated.
Is there an easier way of doing this?