nmrglue.fileio.bruker.read_binary

nmrglue.fileio.bruker.read_binary(filename, shape=1, cplex=True, big=True, isfloat=False)[source]

Read Bruker binary data from 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

Tuple describing shape of resulting data.

cplexbool

Flag indicating if direct dimension is complex.

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.

See also

read_binary_lowmem

Read Bruker binary file using minimal memory.