Read a timeseries with h5py

17 Ansichten (letzte 30 Tage)
Adrien Laveau
Adrien Laveau am 14 Okt. 2024
Beantwortet: Adrien Laveau am 16 Okt. 2024
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.

Akzeptierte Antwort

Adrien Laveau
Adrien Laveau am 16 Okt. 2024
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 :)

Weitere Antworten (1)

Adrien Laveau
Adrien Laveau am 15 Okt. 2024
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

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by