nmrglue.fileio.bruker.read

nmrglue.fileio.bruker.read(dir='.', bin_file=None, acqus_files=None, pprog_file=None, shape=None, cplex=None, big=None, isfloat=None, read_pulseprogram=True, read_acqus=True, procs_files=None, read_procs=True)[source]

Read Bruker files from a directory.

Parameters
dirstr

Directory to read from.

bin_filestr, optional

Filename of binary file in directory. None uses standard files.

acqus_fileslist, optional

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

pprog_filestr, optional

Filename of pulse program in directory. None uses standard files.

shapetuple, optional

Shape of resulting data. None will guess the shape from the spectral parameters.

cplexbool, optional

True is direct dimension is complex, False otherwise. None will guess quadrature from spectral parameters.

bigbool or None, optional

Endianness of binary file. True for big-endian, False for little-endian, None to determine endianness from acqus file(s).

isfloatbool or None, optional

Data type of binary file. True for float64, False for int32. None to determine data type from acqus file(s).

read_pulseprogrambool, optional

True to read pulse program, False prevents reading.

read_acqusbool, optional

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

procs_fileslist, optional

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

read_procsbool, optional

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

Returns
dicdict

Dictionary of Bruker parameters.

datandarray

Array of NMR data.

See also

read_pdata

Read Bruker processed files.

read_lowmem

Low memory reading of Bruker files.

write

Write Bruker files.