nmrglue.fileio.bruker.read_pdata

nmrglue.fileio.bruker.read_pdata(dir='.', bin_files=None, procs_files=None, read_procs=True, shape=None, submatrix_shape=None, all_components=False, big=None)[source]

Read processed Bruker files from a directory.

Parameters :

dir : str

Directory to read from.

bin_files : list of str, optional

List of filename of binary file in directory. None uses standard files.

procs_files : list, optional

List of filename(s) of procs parameter files in directory. None uses standard files.

read_procss : bool, optional

True to read procs files(s), False prevents reading.

shape : tuple, optional

Shape of resulting data. None will guess the shape from the parameters in the procs file(s).

submatrix_shape : tuple, optional

Shape of submatrix for 2D+ data. None will guess the shape from the metadata in the procs file(s).

all_components : bool

True to return all a list of all components, False returns just the all real component (1r, 2rr, 3rrr, etc).

big : bool or None, optional

Endiness of binary file. True of big-endian, False for little-endian, None to determine endiness from procs file(s).

Returns :

dic : dict

Dictionary of Bruker parameters.

data : ndarray or list

Array of NMR data. If all_compoents is True this is a list of array with each quadrature component.

Notes

There is currently no support for writing Bruker processed files or reading processed files using minimal memory.

Previous topic

nmrglue.fileio.bruker.write

Next topic

nmrglue.fileio.bruker.remove_digital_filter

This Page