Reading and writing HDF5 data fields of type H5T_REFERENCE

1 回表示 (過去 30 日間)
Sid Jackson
Sid Jackson 2011 年 4 月 5 日
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.

回答 (1 件)

John
John 2011 年 4 月 7 日
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.

カテゴリ

Help Center および File ExchangeHDF5 についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by