Hi people..
I am new to HDF.
I wanted to read a bin file and store its byte[] in h5 file as byte[] array
itself.
And then read this h5 file and store its byte[] to my bin file back.
How do i go about doing it in java..
please help me...
I am trying to write a compound data type in hdf5 format into a file. However, when it is time to insert the data to the data space, gfortran gives the error during the compilation:
call h5dwrite_f(dset_id, memtype, f_ptr, hdferr)
1
Error: There is no specific subroutine for the generic 'h5dwrite_f' at (1)
When I comment out the last hd5write_f, the code correctly compiles and when run, it creates the data in the file and populate it with zeros. But when writing actual data, it fails at h5write_f step during compilation. My code is attached. I would be glad if you could help me on the matter.
Also, you should consider using the h5offsetof function instead of calculating the offset yourself.
Scot
On 2012-03-02 09:18, Ekin Akoglu wrote:
Dear all,
I am trying to write a compound data type in hdf5 format into a file.
However, when it is time to insert the data to the data space,
gfortran gives the error during the compilation:
call h5dwrite_f(dset_id, memtype, f_ptr, hdferr)
1
Error: There is no specific subroutine for the generic 'h5dwrite_f' at (1)
When I comment out the last hd5write_f, the code correctly compiles
and when run, it creates the data in the file and populate it with
zeros. But when writing actual data, it fails at h5write_f step during
compilation. My code is attached. I would be glad if you could help me
on the matter.
Thank you Izaak and Scot for the suggestions. Apparently, as Scot pointed out, I did not enable Fortran 2003 on compile time and that is why the errors occured. When I recompile with 2003 support and transferred the integer(8) to size_t, the code was compiled without problems.
Also, you should consider using the h5offsetof function instead of calculating the offset yourself.
Scot
On 2012-03-02 09:18, Ekin Akoglu wrote:
Dear all,
I am trying to write a compound data type in hdf5 format into a file.
However, when it is time to insert the data to the data space,
gfortran gives the error during the compilation:
call h5dwrite_f(dset_id, memtype, f_ptr, hdferr)
1
Error: There is no specific subroutine for the generic 'h5dwrite_f' at (1)
When I comment out the last hd5write_f, the code correctly compiles
and when run, it creates the data in the file and populate it with
zeros. But when writing actual data, it fails at h5write_f step during
compilation. My code is attached. I would be glad if you could help me
on the matter.