Hello,

HDF4 file format is different from HDF5. HDF5 library cannot read HDF4 files. 
You will need to use APIs from both HDF4 
(https://www.hdfgroup.org/products/hdf4/) and HDF5 if you are working with two 
types of the HDF files.

Probably a better approach would be to use the h4toh5 conversion tool 
(https://www.hdfgroup.org/h4toh5/) to convert HDF4 files to HDF5 and use the 
HDF5 library.

Elena
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal  The HDF Group  http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




On Feb 2, 2016, at 5:36 PM, M P <[email protected]<mailto:[email protected]>> 
wrote:



Hello,
Some of the datasets that I need to process together are formatted in hdf4 and 
some in hdf5. I am trying to use a fortran interface to do that but h5 routine 
calls fail to read h4 files. What is the best way to solve this problem?
(I compile the code with h5fc)
Thanks,
Mark

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]<mailto:[email protected]>
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to