nmrglue.fileio.varian.fid_nd

class nmrglue.fileio.varian.fid_nd(filename, i2t_func, fshape=None, order=None)[source]

Emulate a ndarray objects without loading data into memory for low memory reading of Agilent/Varian fid files which must have one trace per block.

  • 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 Agilent/Varian binary file.

i2t_func : function

Python function which maps an index to a trace.

fshape : tuple of ints, optional

Shape of data in file, if None will be assumed to be 2D data.

order : tuple

Ordering of axes compared to file. None will results in (0, 1, 2, ...) ordering.

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

Create and set up object.

Methods

__init__(filename, i2t_func[, fshape, 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.varian.get_parameter

Next topic

nmrglue.proc_base

This Page