Matlab h5read errors

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);

 Accepted Answer

Jon
Jon on 26 Jan 2024
Edited: Walter Roberson on 26 Jan 2024
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 Comments

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

Sign in to comment.

More Answers (0)

Products

Release

R2018a

Asked:

Jon
on 26 Jan 2024

Commented:

Jon
on 11 Jun 2024

Community Treasure Hunt

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

Start Hunting!