nmrglue.fileio.bruker.bruker_nd

class nmrglue.fileio.bruker.bruker_nd(filename, fshape, cplex, big, 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 :

filename : str

Filename of Bruker binary file.

fshape : tuple

Shape of NMR data.

cplex : bool

Flag indicating if direct dimension is complex.

big : bool

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

order : tuple

Ordering of axis against file.

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

Create and set up object.

Methods

__init__(filename, fshape, cplex, big[, order]) Create and set up object.
swapaxes(axis1, axis2) Return object with axis1 and axis2 interchanged.
transpose(*axes) Return object with axes transposed.

Previous topic

nmrglue.fileio.bruker.write_jcamp_pair

Next topic

nmrglue.convert

This Page