I have a .h5 file of size 128x128x64, hdf5read or h5read command is reading 64x128x128, I want MATLAB to read original size of the file, can you please help me?
조회 수: 8 (최근 30일)
이전 댓글 표시
data = h5read( 'Soln_700.00279.h5','/T')
or
file = hdf5info('Soln_700.00279.h5')
data_P = hdf5read(file.GroupHierarchy.Datasets(1))
I have tried above both commands, but MATLAB is reading the size in reverse I guess, but I do not know which column is x and y, except z that I know is of size 64. I would appreciate any help.
Thank you
댓글 수: 0
답변 (1개)
Walter Roberson
2022년 7월 26일
You need to examine the hdf5info that is returned, looking at the dimensions information for file.GroupHierarchy.Datasets(1) to try to figure out which is x and which is y.
The most common arrangement in hdf5 files is x, y, z -- which is not the same as what MATLAB uses. MATLAB uses y, x, z so it is common to see something like
data_P = permute(data_P, [2 1 3]);
참고 항목
카테고리
Help Center 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!