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
- filenamestr
Filename of Agilent/Varian binary file.
- i2t_funcfunction
Python function which maps an index to a trace.
- fshapetuple of ints, optional
Shape of data in file, if None will be assumed to be 2D data.
- ordertuple
Ordering of axes compared to file. None will results in (0, 1, 2, …) ordering.
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.