nmrglue.fileio.bruker.bruker_nd

class nmrglue.fileio.bruker.bruker_nd(filename, fshape, cplex, big, isfloat=False, order=None)[source]

Emulate a ndarray objects without loading data into memory for low memory reading of Bruker fid/ser files.

  • slicing operations return ndarray objects.

  • can iterate over with expected results.

  • transpose and swapaxes methods create a new objects with correct axes ordering.

  • has ndim, shape, and dtype attributes.

Parameters
filenamestr

Filename of Bruker binary file.

fshapetuple

Shape of NMR data.

cplexbool

Flag indicating if direct dimension is complex.

bigbool

Endianness of data. True for big-endian, False for little-endian.

isfloatbool

Data type of binary file. True for float64, False for int32.

ordertuple

Ordering of axis against file.

__init__(filename, fshape, cplex, big, isfloat=False, order=None)[source]

Create and set up object.

Methods

__init__(filename, fshape, cplex, big[, ...])

Create and set up object.

swapaxes(axis1, axis2)

Return object with axis1 and axis2 interchanged.

transpose(*axes)

Return object with axes transposed.