Siemens_to_ismrmrd:error while reading the .h5 file

108 views
Skip to first unread message

calvin shaw

unread,
Jan 27, 2017, 3:31:22 PM1/27/17
to ISMRMRD
Hi,
I just started using  the ISMRMRD package for my raw k-space data obtained from dynamic radial FLASH measurements  of a moving wrist on a Skyra.
As a first step, I converted my raw file to .h5 format using the following command:
./siemens_to_ismrmrd -f /media/sf_Desktop/UC_Davis/4D_Wrist_Imaging/Raw_data_Wrist_MRI/January_12_2017_Marissa/Raw_data/meas_MID00051_FID12446_2D_Radial_Radial_Ulnar_original_FOV_100_fa8.dat -o resulting_file.h5
Next, I tried to read the "resulting_file.h5" using MATLAB as
data=h5read('/home/calvin/siemens_to_ismrmrd/build/resulting_file.h5', '/');
However, I get the following error
Error using h5readc
The HDF5 library encountered an error and produced the following stack trace information:

    H5Dopen2    not a dataset

Error in h5read (line 58)
[data,var_class] = h5readc(Filename,Dataset,start,count,stride);

Can you tell me how do I fix this?

Thanks.


Michael Hansen

unread,
Jan 27, 2017, 3:49:02 PM1/27/17
to ISMRMRD
Maybe try with:

data=h5read('/home/calvin/siemens_to_ismrmrd/build/resulting_file.h5', '/dataset/data');

calvin shaw

unread,
Jan 27, 2017, 5:27:55 PM1/27/17
to ISMRMRD
Hi Mike,
That works! Thanks very much.
Last question: Now that I have the raw k-space data in h5 format, how do I reconstruct this image using MATLAB?
I should be good to go after that.

Thanks again for making such a wonderful toolbox publicly available.

Calvin

Michael Hansen

unread,
Jan 28, 2017, 1:10:08 AM1/28/17
to ISMRMRD
How you reconstruct your images will (of course) depend a great deal on what kind of data it is. There is no one way of reconstructing the data, but I suggest reading the lines into an array and doing a 2D FFT. 
Reply all
Reply to author
Forward
0 new messages