nmrglue.fileio.sparky.sparky_2d

class nmrglue.fileio.sparky.sparky_2d(filename, order=None)[source]

Emulates a ndarray object without loading data into memory for low memory reading of 2D Sparky 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 2D Sparky file.

order : tuple, optional

Order of axes against file. None is equivelent to (0, 1).

__init__(filename, order=None)[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.

Previous topic

nmrglue.fileio.sparky.dic2axisheader

Next topic

nmrglue.fileio.sparky.sparky_3d

This Page