nmrglue.fileio.rnmrtk.rnmrtk_nd
- class nmrglue.fileio.rnmrtk.rnmrtk_nd(filename, fshape, cplex, big, order=None)[source]
Emulate a ndarray objects without loading data into memory for low memory reading of RNMRTK 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 RNMRTK file (.sec) to read.
- fshapetuple of ints
Shape of data in file.
- cplexbool
True if the last (fast) axis is complex.
- bigbool
True for big-endian data, False for little-endian.
- ordertuple
Ordering of axes against file. None for (0, 1, 2, …).
Methods
__init__
(filename, fshape, cplex, big[, order])Create and set up
swapaxes
(axis1, axis2)Return object with axis1 and axis2 interchanged.
transpose
(*axes)Return object with axes transposed.