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 :

filename : str

Filename of RNMRTK file (.sec) to read.

fshape : tuple of ints

Shape of data in file.

cplex : bool

True if the last (fast) axis is complex.

big : bool

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

order : tuple

Ordering of axes against file. None for (0, 1, 2, ...).

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

Create and set up

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.

Previous topic

nmrglue.fileio.rnmrtk.find_array_dim

Next topic

nmrglue.simpson

This Page