nmrglue.process.pipe_proc.shuf

nmrglue.process.pipe_proc.shuf(dic, data, mode=None)[source]

Shuffle Utilities

Parameters :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

modes : str

Shuffle mode. See table below for valid modes.

Returns :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

Array of NMR data after shuffle.

Notes

‘rr2ri’ mode ignores any imaginary vector refusing to create a mis-sized vector. ‘bswap’ mode may results in NaN in the data. ‘r2i’ and ‘i2r’ not implemented. All modes correctly update minimum and maximum values. This behavor may differ from NMRPipe’s SHUF function.

Valid modes are:

string Description
‘ri2c’ Interleave real and imaginary data.
‘c2ri’ Seperate real and imaginary data.
‘ri2rr’ Append real and imaginary data.
‘rr2ri’ Unappend real and imaginary data.
‘exlr’ Exchange left and right halfs.
‘rolr’ Rotate left and right halfs.
‘swap’ Swap real and imaginary data.
‘bswap’ Byte-swap data.
‘inv’ Do nothing.

Previous topic

nmrglue.process.pipe_proc.set

Next topic

nmrglue.process.pipe_proc.sign

This Page