read_arbgrad_rawdat

read_arbgrad_rawdat#

mrinufft.io.nsp.read_arbgrad_rawdat(filename, removeOS=False, doAverage=True, squeeze=True, slice_num=None, contrast_num=None, data_type='ARBGRAD_VE11C')[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, optional) – Whether to average the data acquired along NAve dimension, by default True.

  • squeeze (bool, optional) – Whether to squeeze the dimensions of the data, 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.

  • data_type (str, optional) – The type of data to read, by default ‘ARBGRAD_VE11C’.

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