nmrglue.fileio.bruker.read_pdata_binary
- nmrglue.fileio.bruker.read_pdata_binary(filename, shape=None, submatrix_shape=None, big=True, isfloat=False)[source]
Read a processed Bruker binary file and return dic, data pair.
If data cannot be reshaped as described a 1D representation of the data will be returned after printing a warning message.
- Parameters
- filenamestr
Filename of Bruker binary file.
- shapetuple
Shape of resulting data. None will return 1D data.
- submatrix_shapetuple
Tuple describing shape of resulting data. None will return 1D data.
- bigbool
Endianness of binary file, True for big-endian, False for little-endian.
- isfloatbool
Data type of binary file. True for float64, False for int32.
- Returns
- dicdict
Dictionary containing “FILE_SIZE” key and value.
- datandarray
Array of raw NMR data.