nmrglue.fileio.pipe.pipe_3d

class nmrglue.fileio.pipe.pipe_3d(filemask, order=(0, 1, 2), fcheck=False)[source]

Emulate a ndarray objects without loading data into memory for low memory reading of 3D NMRPipe files (multiple file data sets).

  • 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 :

filemask : str

Filename of 3D NMRPipe file. Should contain one formatter ‘%’ operator.

order : tuple

Ordering of axes against file.

fcheck : bool, optional.

True to perform a basic check to see if all files expected for the data set exist. Raises a IOError if files are missing. Default is False.

__init__(filemask, order=(0, 1, 2), fcheck=False)[source]

Create and set up object, check that files exist if fcheck is True

Methods

__init__(filemask[, order, fcheck]) Create and set up object, check that files exist if fcheck is True
swapaxes(axis1, axis2) Return object with axis1 and axis2 interchanged.
transpose(*axes) Return object with axes transposed.

Previous topic

nmrglue.fileio.pipe.pipe_2d

Next topic

nmrglue.fileio.pipe.pipestream_3d

This Page