Read a timeseries with h5py

12 ビュー (過去 30 日間)
Adrien
Adrien 2024 年 10 月 14 日
回答済み: Adrien 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.
  1 件のコメント
Adrien
Adrien 2024 年 10 月 14 日
Here the example file

サインインしてコメントする。

採用された回答

Adrien
Adrien 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
Adrien 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 Center および File ExchangeHDF5 についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by