Read a timeseries with h5py

조회 수: 16 (최근 30일)
Adrien Laveau
Adrien Laveau 2024년 10월 14일
답변: Adrien Laveau 2024년 10월 16일
Hello Community,
I have matfile that I would like to read with h5py but I cannot understand the output. So I used HDF viewer to see if that could lead somewhere but I cannot understand how time series are stored in HDF5.
My example is simple, it is a matfile with just 1 timeserie :
timeseriechannel : 1*1 single simeseries
When I open it in the HDF5 viewer I get the following :
  • timeserie = [3707764736 1 1 1 5] --> not the time and data I expected
  • I find the time under /#refs#/p
  • I find the data under /#refs#/y
How could I expect that ? I gues that some how there is a game of handle and reference, but I cannot find the standard anywhere.
Thank you in advance for the support.

채택된 답변

Adrien Laveau
Adrien Laveau 2024년 10월 16일
Hello,
So I was also discussing with MATLAB support and it seems that they do not recommand to use HDF5 library to read their MAT file outside of MATLAB but rather their C Api. I think that's the key to my problem.
Regarding your proposal, that works but only in matlab, and I am trying to read that in a 3rd party application.
But again thank you again for the support and time spent with me :)

추가 답변 (1개)

Adrien Laveau
Adrien Laveau 2024년 10월 15일
I do not have the HDF5, only the matlfile. Should I generate it from matlab?
And the end goal is to read directly the mat file in another software (uniplot). I cannot ask users to do the conversion step. I might be missing your point here.
Thanks

카테고리

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