nmrglue.process.pipe_proc.shuf
- nmrglue.process.pipe_proc.shuf(dic, data, mode=None)[source]
Shuffle Utilities
- Parameters
- dicdict
Dictionary of NMRPipe parameters.
- datandarray
Array of NMR data.
- modesstr
Shuffle mode. See table below for valid modes.
- Returns
- ndicdict
Dictionary of updated NMRPipe parameters.
- ndatandarray
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.