Problem reading h5 file

조회 수: 5 (최근 30일)
Luis Eduardo Cofré Lizama
Luis Eduardo Cofré Lizama 2020년 2월 3일
Hi All, I have a h5 file (r1s1.h5) for which the original name was manually changed (was 20190809-143113_Walk.h5). Therefore when using hdf5info(r1s1.h5), I get the following werror "Error using hdf5info (line 69)
Could not open file 'Desktop/Data/r1s1.h5'. If I rename teh file to the old name, I can use hd5info whithout probs, but cannot do that for the enormous amount of files I have. Any suggestions about how to read the files when Filename given in hinfo doesnt match the actual file name?
cheers
eduardo
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 2월 3일
That particular error message would indicate a permission problem accessing the file, or a dead symbolic link (Yes, NTFS does have symbolic links even if they are obscure).
Unless, that is, you misrepresented the hdfinfo call you used and in your real call you passed in the relative path to the expectedly location of the file, where your example code passes in a file name without any directory information.

댓글을 달려면 로그인하십시오.

채택된 답변

Luis Eduardo Cofré Lizama
Luis Eduardo Cofré Lizama 2020년 2월 4일
Thanks for your answer Walter, actually it was a path issue! When using my script in a loop I didnt realized I added the path to be searched in the hd5info and off course wouldn't find it. Thanks for the eye opening answer.
Eduardo

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by