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 CenterFile Exchange에서 HDF5에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by