nmrglue.fileio.bruker.reorder_submatrix

nmrglue.fileio.bruker.reorder_submatrix(data, shape, submatrix_shape, reverse=False)[source]

Reorder processed binary Bruker data.

Parameters
dataarray
shapetuple

Shape of final data.

submatrix_shapetuple

Shape of submatrix.

reverseBool

True to reverse the reordering of a submatrix. This options is used to reorder a numpy matrix that is ordered correctly into the Bruker format using submatrix_shape

Returns
rdataarray

Array in which data has been reordered and correctly shaped.