nmrglue.fileio.varian.reorder_data

nmrglue.fileio.varian.reorder_data(data, shape, torder)[source]

Reorder raw data from file.

Parameters
data2D ndarray

Raw data as ordered in binary file.

shapetuple of ints

Shape of the NMR data.

torder{‘f’, ‘r’, ‘o’ of Pytho function}

Trace ordering . See read() for details.

Returns
tdatandarray

Array of NMR data.

Notes

Minimal error checking is done to see if data and shape contain the same number of values. This should be done before calling this function.