Not sure why I am getting this error with h5read, I'm trying to read the first 5000 samples for the first 100 channels
pathFileNetwork = '/Desktop/network_data_full.raw.h5';
networkDataInfo = h5info(pathFileNetwork);
rawpath = '/recordings/rec0000/well000/groups/routed';
h5disp(pathFileNetwork,[rawpath '/raw'])
HDF5 network_data_full.raw.h5
Dataset 'raw'
Size: 1199800x1007
MaxSize: Infx1007
Datatype: H5T_STD_U16LE (uint16)
ChunkSize: 200x1007
Filters: unrecognized filter (mxw-data), deflate(0)
FillValue: 0
networkRawData = h5read(pathFileNetwork,[rawpath '/raw'],[1 1],[5000 100]);
Error using h5readc
The HDF5 library encountered an error and produced the following stack trace information:
H5PL__find can't open directory
H5PL_load search in paths failed
H5Z_pipeline required filter 'mxw-data' is not registered
H5D__chunk_lock data pipeline read failed
H5D__chunk_read unable to read raw data chunk
H5D__read can't read data
H5Dread can't read data
Error in h5read (line 58)
[data,var_class] = h5readc(Filename,Dataset,start,count,stride);

 採用された回答

Jon
Jon 2024 年 1 月 26 日
編集済み: Walter Roberson 2024 年 1 月 26 日

0 投票

solved!
downloaded a Decompression Library to the desktop
opened terminal
touch ~/.zshrc
open ~/.zshrc
add the following line of text and save
export HDF5_PLUGIN_PATH=/Users/maxone/Desktop:$HDF5_PLUGIN_PATH
back in terminal
/Applications/MATLAB_R2018a.app
./matlab
run code in matlab
adjust mac security settings to "Allow Anyway"
I hope this helps anyone having a similar issue!

2 件のコメント

Pierre Boucher
Pierre Boucher 2024 年 6 月 5 日
Hey Jon, I am having the same issue actually. Thank you for your post! Which decompression library are you using?
Jon
Jon 2024 年 6 月 11 日
Hi Pierre,
This is the library I used:
Hope this helps!

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

その他の回答 (0 件)

製品

リリース

R2018a

タグ

質問済み:

Jon
2024 年 1 月 26 日

コメント済み:

Jon
2024 年 6 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by