read_siemens_rawdat#
- mrinufft.io.siemens.read_siemens_rawdat(filename, removeOS=False, doAverage=True, squeeze=True, return_twix=True, slice_num=None, contrast_num=None)[source]#
Read raw data from a Siemens MRI file.
- Parameters:
filename (str) – The path to the Siemens MRI file.
removeOS (bool, optional) – Whether to remove the oversampling, by default False.
doAverage (bool, option) – Whether to average the data acquired along NAve dimension.
squeeze (bool, optional) – Whether to squeeze the dimensions of the data, by default True.
data_type (str, optional) – The type of data to read, by default ‘ARBGRAD_VE11C’.
return_twix (bool, optional) – Whether to return the twix object, by default True.
slice_num (int, optional) – The slice to read, by default None. This applies for 2D data.
contrast_num (int, optional) – The contrast to read, by default None.
- Returns:
data (ndarray) – Imported data formatted as n_coils X n_samples X n_slices X n_contrasts
hdr (dict) – Extra information about the data parsed from the twix file
- Raises:
ImportError – If the mapVBVD module is not available.
Notes
This function requires the mapVBVD module to be installed. You can install it using the following command:
pip install pymapVBVD