Reading and writing HDF5 data fields of type H5T_REFERENCE

1 vue (au cours des 30 derniers jours)
Sid Jackson
Sid Jackson le 5 Avr 2011
The higher level HDF5 MATLAB read function hdf5read explicitly returns the error:
??? Error using ==> hdf5readc H5T_REFERENCE types cannot be read using hdf5read.
Error in ==> hdf5read at 92 [data, attributes] = hdf5readc(settings.filename, ...
Is there any way to use the lower level functions H5D.read and H5D.write to read and write HDF5 data fields of type H5T_REFERENCE? If so, what is the correct syntax to use? If not, are there any plans to support this capability in the future? I am currently using MATLAB version 7.11.0.584 on a Linux platform.

Réponses (1)

John
John le 7 Avr 2011
Hi Sid, it is possible to read and write data fields of type H5T_REFERENCE with H5D.read and H5D.write. Check http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-m.html for example codes on how to do this.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by