nmrglue.fileio.pipe.pipestream_4d

class nmrglue.fileio.pipe.pipestream_4d(filename, order=(0, 1, 2, 3))[source]

Emulate a ndarray objects without loading data into memory for low memory reading of 4D NMRPipe data steams (one file 4D 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
filenamestr

Filename of 4D NMRPipe stream file.

ordertuple

Ordering of axes against file.

__init__(filename, order=(0, 1, 2, 3))[source]

Create and set up object

Methods

__init__(filename[, order])

Create and set up object

swapaxes(axis1, axis2)

Return object with axis1 and axis2 interchanged.

transpose(*axes)

Return object with axes transposed.