Explore an hdf5 file

조회 수: 5 (최근 30일)
maxroucool
maxroucool 2012년 5월 4일
Hi all,
I would like to post treat information from a software called PAM-RTM which simulate injection of resin. Output files are erfh5 that is a kind of hdf5.
So I am discovering this file format and especially the structure of these output files. When I used to program in PHP, there was a function called print_r() enabling to explore the structure of an array to know what are the information that it contains. http://php.net/manual/fr/function.print-r.php
I would like to know if there is an equivalent of this function to explore hdf5 files in matlab.
BR,
Max

채택된 답변

John
John 2012년 5월 4일
Go to MATLAB Central and search for HDF5TOOLS. It has a function called H5DUMP that should work on 2009a.
  댓글 수: 1
maxroucool
maxroucool 2012년 5월 5일
Exactly what I was expecting!
Thank you very much!
Max

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

추가 답변 (3개)

per isakson
per isakson 2012년 5월 4일
Did you search the Matlab documentation? Yes there is! Try
info = h5info( filespec );
See help on h5info. I have the impression that Matlab supports HDF5 well.

maxroucool
maxroucool 2012년 5월 4일
Hi per isakson,
Thanks for the answer.
I already saw these 3 functions h5info/read/write. But with my previous question I was expecting a recursive function that explores the whole structure of the file.
Of course I could do it by myself, but since I don't really understand the structure of these files, it is not obvious to do it.
BR,

maxroucool
maxroucool 2012년 5월 4일
OK, in fact you were right!
The h5disp() function seems to do what I want, but does not seems to be available on Matlab 2009... http://www.mathworks.fr/help/techdoc/import_export/f5-86568.html#bsxixpv-1

카테고리

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